#2B5F0D#2B5F0D

#2B5F0D is a dark, vivid yellow-green. Relative luminance 0.087; OKLCH L 43.3% C 0.123 H 137.2°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2B5F0D
RGBrgb(43, 95, 13)
HSLhsl(98, 76%, 21%)
HSVhsv(98, 86%, 37%)
CMYKcmyk(54.7%, 0%, 86.3%, 62.7%)
CIE-LABlab(35.45, -32.44, 37.83)
CIE-LCHlch(35.45, 49.83, 130.62°)
OKLaboklab(43.28% -0.0901 0.0836)
OKLCHoklch(43.28% 0.123 137.2)
XYZxyz(5.1610, 8.7267, 1.7932)
Luminance0.0873 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5F0D #410D5F
analogous
#545F0D #2B5F0D #0D5F18
triadic
#2B5F0D #0D2B5F #5F0D2B
tetradic
#2B5F0D #0D545F #410D5F #5F180D
square
#2B5F0D #0D545F #410D5F #5F180D
split-complementary
#2B5F0D #180D5F #5F0D54
monochromatic
#0C1B04 #132906 #2B5F0D #439514 #5CCB1C

Accessibility & contrast

On white

7.65
#2B5F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2B5F0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B5F0D
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5F0D#FFFFFF#000000##FFFFFF
##2B5F0D1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5C5217
Tritanopia (blue-blind)
#285B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2b5f0d;
/* rgb */ color: rgb(43, 95, 13);
/* oklch */ color: oklch(43.3% 0.123 137.2);
Tailwind
colors: {
  custom: {
    50: '#6b8d54',
    500: '#2b5f0d',
    950: '#000000',
  },
}
SCSS
$custom: #2b5f0d;
$custom-light: #6b8d54;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5f0d",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 13
  },
  "hsl": {
    "h": 98.049,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43281,
    "c": 0.1229,
    "h": 137.2
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

primary
#2B5F0D
secondary
#722F99
accent
#35F3AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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