Colour reference
Pakistan Green
#283618
- RGB
- rgb(40 54 24)
- HSL
- 88°, 38%, 15%
- OKLCh
- 31.2% 0.053 129.6
Pakistan Green in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #283618 | |
|---|---|---|
| RGB | rgb(40 54 24) | |
| RGB legacy | rgb(40, 54, 24) | |
| RGB percent | rgb(15.69% 21.18% 9.41%) | |
| HSL | hsl(88 38.5% 15.3%) | |
| HSL legacy | hsl(88, 38.5%, 15.3%) | |
| HSV / HSB | hsv(88, 55.6%, 21.2%) | |
| HWB | hwb(88 9.4% 78.8%) | |
| Nearest name | darkslategray (approx.) | |
| CMYK | cmyk(25.9%, 0%, 55.6%, 78.8%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(31.179% 0.05286 129.564)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(31.179% -0.03367 0.04075) | |
| CIE LCh | lch(20.72% 19.918 122.672) | |
| CIE Lab | lab(20.72% -10.752 16.767) | |
| Display P3 | color(display-p3 0.168 0.2102 0.1082) | |
| Rec. 2020 | color(rec2020 0.1129 0.1454 0.053) | |
| srgb-linear | color(srgb-linear 0.0212 0.0369 0.0091)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.0236 0.0316 0.0135) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.157, 0.212, 0.094)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.021, 0.037, 0.009)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.157, 0.212, 0.094, 1.0) | |
| GLSL vec4 — linear | vec4(0.021, 0.037, 0.009, 1.0) | |
| GLSL ivec3 | ivec3(40, 54, 24) | |
| HLSL float3 — sRGB | float3(0.157, 0.212, 0.094) | |
| HLSL float3 — linear | float3(0.021, 0.037, 0.009) | |
| HLSL float4 — sRGB | float4(0.157, 0.212, 0.094, 1.0) | |
| HLSL half4 — sRGB | half4(0.157, 0.212, 0.094, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.157, 0.212, 0.094) | |
| WGSL vec4f — sRGB | vec4f(0.157, 0.212, 0.094, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.021, 0.037, 0.009) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.157f, 0.212f, 0.094f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(40, 54, 24, 255) | |
| Unreal FLinearColor | FLinearColor(0.0212f, 0.0369f, 0.0091f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(40, 54, 24, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.157, 0.212, 0.094, 1) | |
| Flutter Color | Color(0xFF283618)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(40, 54, 24) | |
| SwiftUI Color | Color(red: 0.157, green: 0.212, blue: 0.094) | |
| UIKit UIColor | UIColor(red: 0.157, green: 0.212, blue: 0.094, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x283618 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF283618 | |
| Array 0–1 | [0.157, 0.212, 0.094] | |
| Array 0–255 | [40, 54, 24] | |
| Decimal integer | 2635288 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Pakistan Green on white | 12.87:1 | AAA | Lc 99 | Body text at any size |
| Pakistan Green on black | 1.63:1 | Fail | Lc 0 | Not usable for text |
Pakistan Green text on a white background
Pakistan Green text on a black background
White text on Pakistan Green
Black text on Pakistan Green
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#effde2
- 100#e5f4d7
- 200#d3e3c4
- 300#bcccac
- 400#9fb08e
- 500#819270
- 600#687858
- 700#526043
- 800#404d32
- 900#313c25
- 950#1a2310
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#47543a
- Tint 2#68735e
- Tint 3#8c9484
- Tint 4#b1b7ab
- Tint 5#d7dad4
- Shade 1#1d2810
- Shade 2#131b09
- Shade 3#090f04
- Shade 4#030501
- Shade 5#000100
Colours that work with Pakistan Green
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #392945
- #1a334a
- #47252b
- #37310e
- #153927
Closest CSS names
darkslategrayΔEok 0.104darkgreenΔEok 0.158maroonΔEok 0.184darkolivegreenΔEok 0.187midnightblueΔEok 0.190saddlebrownΔEok 0.196