#285312#285312

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

Color values

HEX#285312
RGBrgb(40, 83, 18)
HSLhsl(100, 64%, 20%)
HSVhsv(100, 78%, 33%)
CMYKcmyk(51.8%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.07, -27.85, 31.69)
CIE-LCHlch(31.07, 42.19, 131.31°)
OKLaboklab(39.65% -0.0772 0.0716)
OKLCHoklch(39.65% 0.105 137.2)
XYZxyz(4.0774, 6.6810, 1.6469)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285312 #3D1253
analogous
#495312 #285312 #12531C
triadic
#285312 #122853 #531228
tetradic
#285312 #124953 #3D1253 #531C12
square
#285312 #124953 #3D1253 #531C12
split-complementary
#285312 #1C1253 #531249
monochromatic
#0C1905 #102107 #285312 #40851D #58B828

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##285312#FFFFFF#000000##FFFFFF
##2853121.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)
#564B07
Deuteranopia (green-blind)
#504818
Tritanopia (blue-blind)
#255046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #285312;
/* rgb */ color: rgb(40, 83, 18);
/* oklch */ color: oklch(39.6% 0.105 137.2);
Tailwind
colors: {
  custom: {
    50: '#678455',
    500: '#285312',
    950: '#000000',
  },
}
SCSS
$custom: #285312;
$custom-light: #678455;
$custom-dark: #000000;
JSON
{
  "hex": "#285312",
  "rgb": {
    "r": 40,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 99.692,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39648,
    "c": 0.10531,
    "h": 137.2
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#285312
secondary
#6E358C
accent
#40E7AF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #285312

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

Preview Lab → · Contrast checker → · Palette generator →

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