#285311#285311

#285311 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.6% C 0.106 H 137.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#285311
RGBrgb(40, 83, 17)
HSLhsl(99, 66%, 20%)
HSVhsv(99, 80%, 33%)
CMYKcmyk(51.8%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.06, -27.94, 32.11)
CIE-LCHlch(31.06, 42.56, 131.03°)
OKLaboklab(39.64% -0.0775 0.0723)
OKLCHoklch(39.64% 0.106 137)
XYZxyz(4.0694, 6.6778, 1.6047)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285311 #3C1153
analogous
#495311 #285311 #11531B
triadic
#285311 #112853 #531128
tetradic
#285311 #114953 #3C1153 #531B11
square
#285311 #114953 #3C1153 #531B11
split-complementary
#285311 #1B1153 #531149
monochromatic
#0C1905 #102007 #285311 #40861B #59B926

Accessibility & contrast

On white

8.99
#285311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#285311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285311
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285311#FFFFFF#000000##FFFFFF
##2853111.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B05
Deuteranopia (green-blind)
#504818
Tritanopia (blue-blind)
#265046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #285311;
/* rgb */ color: rgb(40, 83, 17);
/* oklch */ color: oklch(39.6% 0.106 137.0);
Tailwind
colors: {
  custom: {
    50: '#678454',
    500: '#285311',
    950: '#000000',
  },
}
SCSS
$custom: #285311;
$custom-light: #678454;
$custom-dark: #000000;
JSON
{
  "hex": "#285311",
  "rgb": {
    "r": 40,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 99.091,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39639,
    "c": 0.106,
    "h": 137
  },
  "luminance": 0.06678
}

Semantic roles & 50–950 ramp

primary
#285311
secondary
#6D348C
accent
#3FE9AE
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285311

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

Preview Lab → · Contrast checker → · Palette generator →

#285311 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva