#283902#283902

#283902 is a dark, moderate yellow-green. Relative luminance 0.034; OKLCH L 31.8% C 0.079 H 126.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#283902
RGBrgb(40, 57, 2)
HSLhsl(79, 93%, 12%)
HSVhsv(79, 96%, 22%)
CMYKcmyk(29.8%, 0%, 96.5%, 77.6%)
CIE-LABlab(21.51, -16.04, 28.70)
CIE-LCHlch(21.51, 32.88, 119.20°)
OKLaboklab(31.8% -0.0468 0.0638)
OKLCHoklch(31.8% 0.079 126.3)
XYZxyz(2.3492, 3.3817, 0.5864)
Luminance0.0338 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283902 #130239
analogous
#392F02 #283902 #0D3902
triadic
#283902 #022839 #390228
tetradic
#283902 #02392F #130239 #39020D
square
#283902 #02392F #130239 #39020D
split-complementary
#283902 #020D39 #2F0239
monochromatic
#151E01 #151E01 #283902 #517404 #7BAF06

Accessibility & contrast

On white

12.53
#283902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#283902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283902
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283902#FFFFFF#000000##FFFFFF
##2839021.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3400
Deuteranopia (green-blind)
#3A3307
Tritanopia (blue-blind)
#2A362F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #283902;
/* rgb */ color: rgb(40, 57, 2);
/* oklch */ color: oklch(31.8% 0.079 126.3);
Tailwind
colors: {
  custom: {
    50: '#646f49',
    500: '#283902',
    950: '#000000',
  },
}
SCSS
$custom: #283902;
$custom-light: #646f49;
$custom-dark: #000000;
JSON
{
  "hex": "#283902",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 2
  },
  "hsl": {
    "h": 78.545,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.31797,
    "c": 0.07912,
    "h": 126.3
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#283902
secondary
#391A7D
accent
#29FF6B
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #283902

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

Preview Lab → · Contrast checker → · Palette generator →

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