#2A4810#2A4810

#2A4810 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.5% C 0.090 H 133.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2A4810
RGBrgb(42, 72, 16)
HSLhsl(92, 64%, 17%)
HSVhsv(92, 78%, 28%)
CMYKcmyk(41.7%, 0%, 77.8%, 71.8%)
CIE-LABlab(27.20, -22.01, 28.65)
CIE-LCHlch(27.20, 36.13, 127.52°)
OKLaboklab(36.5% -0.0617 0.0649)
OKLCHoklch(36.5% 0.09 133.5)
XYZxyz(3.3657, 5.1642, 1.3096)
Luminance0.0516 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4810 #2E1048
analogous
#464810 #2A4810 #104812
triadic
#2A4810 #102A48 #48102A
tetradic
#2A4810 #104648 #2E1048 #481210
square
#2A4810 #104648 #2E1048 #481210
split-complementary
#2A4810 #121048 #481046
monochromatic
#0F1906 #0F1906 #2A4810 #477A1B #64AC26

Accessibility & contrast

On white

10.33
#2A4810 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A4810 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4810
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4810#FFFFFF#000000##FFFFFF
##2A48101.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4207
Deuteranopia (green-blind)
#473F15
Tritanopia (blue-blind)
#2A453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4810;
/* rgb */ color: rgb(42, 72, 16);
/* oklch */ color: oklch(36.5% 0.090 133.5);
Tailwind
colors: {
  custom: {
    50: '#677b52',
    500: '#2a4810',
    950: '#000000',
  },
}
SCSS
$custom: #2a4810;
$custom-light: #677b52;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4810",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 16
  },
  "hsl": {
    "h": 92.143,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36499,
    "c": 0.08953,
    "h": 133.5
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#2A4810
secondary
#5D3282
accent
#41E79A
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4810

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

Preview Lab → · Contrast checker → · Palette generator →

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