#285D12#285D12

#285D12 is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.6% C 0.119 H 138.4°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#285D12
RGBrgb(40, 93, 18)
HSLhsl(102, 68%, 22%)
HSVhsv(102, 81%, 36%)
CMYKcmyk(57%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.65, -32.24, 35.26)
CIE-LCHlch(34.65, 47.78, 132.43°)
OKLaboklab(42.59% -0.089 0.0791)
OKLCHoklch(42.59% 0.119 138.4)
XYZxyz(4.8984, 8.3231, 1.9205)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285D12 #47125D
analogous
#4E5D12 #285D12 #125D22
triadic
#285D12 #12285D #5D1228
tetradic
#285D12 #124E5D #47125D #5D2212
square
#285D12 #124E5D #47125D #5D2212
split-complementary
#285D12 #22125D #5D124E
monochromatic
#0B1A05 #122A08 #285D12 #3E901C #54C426

Accessibility & contrast

On white

7.88
#285D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#285D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285D12
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285D12#FFFFFF#000000##FFFFFF
##285D121.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605403
Deuteranopia (green-blind)
#59501A
Tritanopia (blue-blind)
#235A4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #285d12;
/* rgb */ color: rgb(40, 93, 18);
/* oklch */ color: oklch(42.6% 0.119 138.4);
Tailwind
colors: {
  custom: {
    50: '#698b56',
    500: '#285d12',
    950: '#000000',
  },
}
SCSS
$custom: #285d12;
$custom-light: #698b56;
$custom-dark: #000000;
JSON
{
  "hex": "#285d12",
  "rgb": {
    "r": 40,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 102.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42592,
    "c": 0.11907,
    "h": 138.4
  },
  "luminance": 0.08323
}

Semantic roles & 50–950 ramp

primary
#285D12
secondary
#793595
accent
#3DEAB8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #285D12

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#285D12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva