#2A4F16#2A4F16

#2A4F16 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.095 H 136.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2A4F16
RGBrgb(42, 79, 22)
HSLhsl(99, 56%, 20%)
HSVhsv(99, 72%, 31%)
CMYKcmyk(46.8%, 0%, 72.2%, 69%)
CIE-LABlab(29.77, -24.88, 28.54)
CIE-LCHlch(29.77, 37.87, 131.08°)
OKLaboklab(38.62% -0.069 0.0656)
OKLCHoklch(38.62% 0.095 136.5)
XYZxyz(3.8955, 6.1419, 1.7391)
Luminance0.0614 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F16 #3B164F
analogous
#474F16 #2A4F16 #164F1E
triadic
#2A4F16 #162A4F #4F162A
tetradic
#2A4F16 #16474F #3B164F #4F1E16
square
#2A4F16 #16474F #3B164F #4F1E16
split-complementary
#2A4F16 #1E164F #4F1647
monochromatic
#0D1807 #111F09 #2A4F16 #437F23 #5DAF31

Accessibility & contrast

On white

9.42
#2A4F16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4F16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F16
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F16#FFFFFF#000000##FFFFFF
##2A4F161.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52480F
Deuteranopia (green-blind)
#4D451B
Tritanopia (blue-blind)
#284C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f16;
/* rgb */ color: rgb(42, 79, 22);
/* oklch */ color: oklch(38.6% 0.095 136.5);
Tailwind
colors: {
  custom: {
    50: '#678056',
    500: '#2a4f16',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f16;
$custom-light: #678056;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f16",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 22
  },
  "hsl": {
    "h": 98.947,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38618,
    "c": 0.09517,
    "h": 136.5
  },
  "luminance": 0.06142
}

Semantic roles & 50–950 ramp

primary
#2A4F16
secondary
#6C3A86
accent
#48E0AB
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4F16

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

Preview Lab → · Contrast checker → · Palette generator →

#2A4F16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva