#2B5412#2B5412

#2B5412 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.1% C 0.105 H 136.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#2B5412
RGBrgb(43, 84, 18)
HSLhsl(97, 65%, 20%)
HSVhsv(97, 79%, 33%)
CMYKcmyk(48.8%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.57, -27.23, 32.25)
CIE-LCHlch(31.57, 42.21, 130.18°)
OKLaboklab(40.1% -0.0757 0.0727)
OKLCHoklch(40.1% 0.105 136.2)
XYZxyz(4.2757, 6.8976, 1.6782)
Luminance0.0690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5412 #3B1254
analogous
#4C5412 #2B5412 #12541A
triadic
#2B5412 #122B54 #54122B
tetradic
#2B5412 #124C54 #3B1254 #541A12
square
#2B5412 #124C54 #3B1254 #541A12
split-complementary
#2B5412 #1A1254 #54124C
monochromatic
#0D1905 #112207 #2B5412 #45861D #5FB928

Accessibility & contrast

On white

8.83
#2B5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2B5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5412
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5412#FFFFFF#000000##FFFFFF
##2B54121.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#295147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b5412;
/* rgb */ color: rgb(43, 84, 18);
/* oklch */ color: oklch(40.1% 0.105 136.2);
Tailwind
colors: {
  custom: {
    50: '#698455',
    500: '#2b5412',
    950: '#000000',
  },
}
SCSS
$custom: #2b5412;
$custom-light: #698455;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5412",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 97.273,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40101,
    "c": 0.105,
    "h": 136.2
  },
  "luminance": 0.06898
}

Semantic roles & 50–950 ramp

primary
#2B5412
secondary
#6C358D
accent
#40E8A8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2B5412

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

Preview Lab → · Contrast checker → · Palette generator →

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