#2A510C#2A510C

#2A510C is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.105 H 135.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2A510C
RGBrgb(42, 81, 12)
HSLhsl(94, 74%, 18%)
HSVhsv(94, 85%, 32%)
CMYKcmyk(48.1%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.41, -26.65, 33.44)
CIE-LCHlch(30.41, 42.76, 128.55°)
OKLaboklab(39.12% -0.0745 0.0742)
OKLCHoklch(39.12% 0.105 135.1)
XYZxyz(3.9635, 6.4034, 1.3749)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A510C #330C51
analogous
#4C510C #2A510C #0C5110
triadic
#2A510C #0C2A51 #510C2A
tetradic
#2A510C #0C4C51 #330C51 #51100C
square
#2A510C #0C4C51 #330C51 #51100C
split-complementary
#2A510C #100C51 #510C4C
monochromatic
#0E1B04 #0E1C04 #2A510C #468614 #61BC1C

Accessibility & contrast

On white

9.21
#2A510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A510C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A510C#FFFFFF#000000##FFFFFF
##2A510C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A00
Deuteranopia (green-blind)
#4F4614
Tritanopia (blue-blind)
#294E44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a510c;
/* rgb */ color: rgb(42, 81, 12);
/* oklch */ color: oklch(39.1% 0.105 135.1);
Tailwind
colors: {
  custom: {
    50: '#688251',
    500: '#2a510c',
    950: '#000000',
  },
}
SCSS
$custom: #2a510c;
$custom-light: #688251;
$custom-dark: #000000;
JSON
{
  "hex": "#2a510c",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 93.913,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39119,
    "c": 0.1052,
    "h": 135.1
  },
  "luminance": 0.06404
}

Semantic roles & 50–950 ramp

primary
#2A510C
secondary
#632C8C
accent
#37F1A0
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A510C

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

Preview Lab → · Contrast checker → · Palette generator →

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