#2B5010#2B5010

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

Color values

HEX#2B5010
RGBrgb(43, 80, 16)
HSLhsl(95, 67%, 19%)
HSVhsv(95, 80%, 31%)
CMYKcmyk(46.2%, 0%, 80%, 68.6%)
CIE-LABlab(30.13, -25.51, 31.64)
CIE-LCHlch(30.13, 40.64, 128.89°)
OKLaboklab(38.91% -0.0713 0.0711)
OKLCHoklch(38.91% 0.101 135.1)
XYZxyz(3.9584, 6.2881, 1.4953)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5010 #351050
analogous
#4B5010 #2B5010 #105015
triadic
#2B5010 #102B50 #50102B
tetradic
#2B5010 #104B50 #351050 #501510
square
#2B5010 #104B50 #351050 #501510
split-complementary
#2B5010 #151050 #50104B
monochromatic
#0E1A05 #101D06 #2B5010 #46831A #62B624

Accessibility & contrast

On white

9.30
#2B5010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B5010
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5010#FFFFFF#000000##FFFFFF
##2B50101.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534905
Deuteranopia (green-blind)
#4E4616
Tritanopia (blue-blind)
#2A4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b5010;
/* rgb */ color: rgb(43, 80, 16);
/* oklch */ color: oklch(38.9% 0.101 135.1);
Tailwind
colors: {
  custom: {
    50: '#688153',
    500: '#2b5010',
    950: '#000000',
  },
}
SCSS
$custom: #2b5010;
$custom-light: #688153;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5010",
  "rgb": {
    "r": 43,
    "g": 80,
    "b": 16
  },
  "hsl": {
    "h": 94.688,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38912,
    "c": 0.10068,
    "h": 135.1
  },
  "luminance": 0.06288
}

Semantic roles & 50–950 ramp

primary
#2B5010
secondary
#65328A
accent
#3EEAA1
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2B5010

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

Preview Lab → · Contrast checker → · Palette generator →

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