#2B500C#2B500C

#2B500C is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.103 H 134.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2B500C
RGBrgb(43, 80, 12)
HSLhsl(93, 74%, 18%)
HSVhsv(93, 85%, 31%)
CMYKcmyk(46.2%, 0%, 85%, 68.6%)
CIE-LABlab(30.10, -25.80, 33.17)
CIE-LCHlch(30.10, 42.02, 127.87°)
OKLaboklab(38.88% -0.0723 0.0736)
OKLCHoklch(38.88% 0.103 134.5)
XYZxyz(3.9312, 6.2772, 1.3522)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B500C #310C50
analogous
#4D500C #2B500C #0C500F
triadic
#2B500C #0C2B50 #500C2B
tetradic
#2B500C #0C4D50 #310C50 #500F0C
square
#2B500C #0C4D50 #310C50 #500F0C
split-complementary
#2B500C #0F0C50 #500C4D
monochromatic
#0E1B04 #0E1B04 #2B500C #488514 #64BA1C

Accessibility & contrast

On white

9.31
#2B500C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B500C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B500C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B500C#FFFFFF#000000##FFFFFF
##2B500C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534900
Deuteranopia (green-blind)
#4E4613
Tritanopia (blue-blind)
#2A4D43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b500c;
/* rgb */ color: rgb(43, 80, 12);
/* oklch */ color: oklch(38.9% 0.103 134.5);
Tailwind
colors: {
  custom: {
    50: '#698151',
    500: '#2b500c',
    950: '#000000',
  },
}
SCSS
$custom: #2b500c;
$custom-light: #698151;
$custom-dark: #000000;
JSON
{
  "hex": "#2b500c",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 12
  },
  "hsl": {
    "h": 92.647,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38881,
    "c": 0.10323,
    "h": 134.5
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#2B500C
secondary
#602C8B
accent
#37F19C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B500C

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

Preview Lab → · Contrast checker → · Palette generator →

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