#2C510C#2C510C

#2C510C is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.104 H 134.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2C510C
RGBrgb(44, 81, 12)
HSLhsl(92, 74%, 18%)
HSVhsv(92, 85%, 32%)
CMYKcmyk(45.7%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.51, -25.88, 33.58)
CIE-LCHlch(30.51, 42.40, 127.63°)
OKLaboklab(39.23% -0.0726 0.0745)
OKLCHoklch(39.23% 0.104 134.3)
XYZxyz(4.0474, 6.4467, 1.3788)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C510C #310C51
analogous
#4E510C #2C510C #0C510E
triadic
#2C510C #0C2C51 #510C2C
tetradic
#2C510C #0C4E51 #310C51 #510E0C
square
#2C510C #0C4E51 #310C51 #510E0C
split-complementary
#2C510C #0E0C51 #510C4E
monochromatic
#0E1B04 #0F1C04 #2C510C #498614 #66BC1C

Accessibility & contrast

On white

9.17
#2C510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2C510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C510C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C510C#FFFFFF#000000##FFFFFF
##2C510C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A00
Deuteranopia (green-blind)
#504714
Tritanopia (blue-blind)
#2B4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c510c;
/* rgb */ color: rgb(44, 81, 12);
/* oklch */ color: oklch(39.2% 0.104 134.3);
Tailwind
colors: {
  custom: {
    50: '#698251',
    500: '#2c510c',
    950: '#000000',
  },
}
SCSS
$custom: #2c510c;
$custom-light: #698251;
$custom-dark: #000000;
JSON
{
  "hex": "#2c510c",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 92.174,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39233,
    "c": 0.10403,
    "h": 134.3
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#2C510C
secondary
#602C8C
accent
#37F19B
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2C510C

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

Preview Lab → · Contrast checker → · Palette generator →

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