#284F0B#284F0B

#284F0B is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.4% C 0.104 H 135.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#284F0B
RGBrgb(40, 79, 11)
HSLhsl(94, 76%, 18%)
HSVhsv(94, 86%, 31%)
CMYKcmyk(49.4%, 0%, 86.1%, 69%)
CIE-LABlab(29.58, -26.54, 32.98)
CIE-LCHlch(29.58, 42.33, 128.82°)
OKLaboklab(38.41% -0.0742 0.0731)
OKLCHoklch(38.41% 0.104 135.4)
XYZxyz(3.7314, 6.0670, 1.2910)
Luminance0.0607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F0B #320B4F
analogous
#4A4F0B #284F0B #0B4F10
triadic
#284F0B #0B284F #4F0B28
tetradic
#284F0B #0B4A4F #320B4F #4F100B
square
#284F0B #0B4A4F #320B4F #4F100B
split-complementary
#284F0B #100B4F #4F0B4A
monochromatic
#0E1B04 #0E1B04 #284F0B #438512 #5EBA1A

Accessibility & contrast

On white

9.49
#284F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#284F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F0B
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F0B#FFFFFF#000000##FFFFFF
##284F0B1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4D4513
Tritanopia (blue-blind)
#274C42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #284f0b;
/* rgb */ color: rgb(40, 79, 11);
/* oklch */ color: oklch(38.4% 0.104 135.4);
Tailwind
colors: {
  custom: {
    50: '#678150',
    500: '#284f0b',
    950: '#000000',
  },
}
SCSS
$custom: #284f0b;
$custom-light: #678150;
$custom-dark: #000000;
JSON
{
  "hex": "#284f0b",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 11
  },
  "hsl": {
    "h": 94.412,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.3841,
    "c": 0.10417,
    "h": 135.4
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#284F0B
secondary
#622B8B
accent
#36F2A2
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284F0B

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

Preview Lab → · Contrast checker → · Palette generator →

#284F0B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva