#2B5F0C#2B5F0C

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

Color values

HEX#2B5F0C
RGBrgb(43, 95, 12)
HSLhsl(98, 78%, 21%)
HSVhsv(98, 87%, 37%)
CMYKcmyk(54.7%, 0%, 87.4%, 62.7%)
CIE-LABlab(35.45, -32.50, 38.13)
CIE-LCHlch(35.45, 50.10, 130.44°)
OKLaboklab(43.28% -0.0903 0.0841)
OKLCHoklch(43.28% 0.123 137.1)
XYZxyz(5.1547, 8.7242, 1.7601)
Luminance0.0872 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5F0C #400C5F
analogous
#545F0C #2B5F0C #0C5F16
triadic
#2B5F0C #0C2B5F #5F0C2B
tetradic
#2B5F0C #0C545F #400C5F #5F160C
square
#2B5F0C #0C545F #400C5F #5F160C
split-complementary
#2B5F0C #160C5F #5F0C54
monochromatic
#0C1B03 #122905 #2B5F0C #449513 #5CCC1A

Accessibility & contrast

On white

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

On black

2.74
#2B5F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2B5F0C#FFFFFF#000000##FFFFFF
##2B5F0C1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b5f0c;
/* rgb */ color: rgb(43, 95, 12);
/* oklch */ color: oklch(43.3% 0.123 137.1);
Tailwind
colors: {
  custom: {
    50: '#6b8d54',
    500: '#2b5f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2b5f0c;
$custom-light: #6b8d54;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5f0c",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 97.59,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.43276,
    "c": 0.12339,
    "h": 137.1
  },
  "luminance": 0.08725
}

Semantic roles & 50–950 ramp

primary
#2B5F0C
secondary
#712D99
accent
#34F4AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2B5F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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