#2B540C#2B540C

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

Color values

HEX#2B540C
RGBrgb(43, 84, 12)
HSLhsl(94, 75%, 19%)
HSVhsv(94, 86%, 33%)
CMYKcmyk(48.8%, 0%, 85.7%, 67.1%)
CIE-LABlab(31.53, -27.66, 34.52)
CIE-LCHlch(31.53, 44.23, 128.70°)
OKLaboklab(40.06% -0.0773 0.0765)
OKLCHoklch(40.06% 0.109 135.3)
XYZxyz(4.2328, 6.8805, 1.4528)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B540C #350C54
analogous
#4F540C #2B540C #0C5411
triadic
#2B540C #0C2B54 #540C2B
tetradic
#2B540C #0C4F54 #350C54 #54110C
square
#2B540C #0C4F54 #350C54 #54110C
split-complementary
#2B540C #110C54 #540C4F
monochromatic
#0E1B04 #101E04 #2B540C #468A14 #62BF1B

Accessibility & contrast

On white

8.84
#2B540C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B540C
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B540C#FFFFFF#000000##FFFFFF
##2B540C1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#524914
Tritanopia (blue-blind)
#2A5047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b540c;
/* rgb */ color: rgb(43, 84, 12);
/* oklch */ color: oklch(40.1% 0.109 135.3);
Tailwind
colors: {
  custom: {
    50: '#698452',
    500: '#2b540c',
    950: '#000000',
  },
}
SCSS
$custom: #2b540c;
$custom-light: #698452;
$custom-dark: #000000;
JSON
{
  "hex": "#2b540c",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 12
  },
  "hsl": {
    "h": 94.167,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.40056,
    "c": 0.10876,
    "h": 135.3
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#2B540C
secondary
#652D8F
accent
#36F2A1
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B02
muted
#7A7C78

Preview Lab

Preview with #2B540C

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

Preview Lab → · Contrast checker → · Palette generator →

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