#2B510C#2B510C

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

Color values

HEX#2B510C
RGBrgb(43, 81, 12)
HSLhsl(93, 74%, 18%)
HSVhsv(93, 85%, 32%)
CMYKcmyk(46.9%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.46, -26.27, 33.51)
CIE-LCHlch(30.46, 42.58, 128.09°)
OKLaboklab(39.17% -0.0736 0.0744)
OKLCHoklch(39.17% 0.105 134.7)
XYZxyz(4.0050, 6.4248, 1.3768)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B510C #320C51
analogous
#4D510C #2B510C #0C510F
triadic
#2B510C #0C2B51 #510C2B
tetradic
#2B510C #0C4D51 #320C51 #510F0C
square
#2B510C #0C4D51 #320C51 #510F0C
split-complementary
#2B510C #0F0C51 #510C4D
monochromatic
#0E1B04 #0F1C04 #2B510C #478614 #64BC1C

Accessibility & contrast

On white

9.19
#2B510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B510C
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B510C#FFFFFF#000000##FFFFFF
##2B510C1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A00
Deuteranopia (green-blind)
#4F4714
Tritanopia (blue-blind)
#2A4E44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b510c;
/* rgb */ color: rgb(43, 81, 12);
/* oklch */ color: oklch(39.2% 0.105 134.7);
Tailwind
colors: {
  custom: {
    50: '#698251',
    500: '#2b510c',
    950: '#000000',
  },
}
SCSS
$custom: #2b510c;
$custom-light: #698251;
$custom-dark: #000000;
JSON
{
  "hex": "#2b510c",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 93.043,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39175,
    "c": 0.10462,
    "h": 134.7
  },
  "luminance": 0.06425
}

Semantic roles & 50–950 ramp

primary
#2B510C
secondary
#612C8C
accent
#37F19D
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B510C

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

Preview Lab → · Contrast checker → · Palette generator →

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