#2C540F#2C540F

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

Color values

HEX#2C540F
RGBrgb(44, 84, 15)
HSLhsl(95, 70%, 19%)
HSVhsv(95, 82%, 33%)
CMYKcmyk(47.6%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.60, -27.09, 33.50)
CIE-LCHlch(31.60, 43.08, 128.95°)
OKLaboklab(40.13% -0.0757 0.0748)
OKLCHoklch(40.13% 0.106 135.3)
XYZxyz(4.2952, 6.9104, 1.5594)
Luminance0.0691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C540F #370F54
analogous
#4F540F #2C540F #0F5415
triadic
#2C540F #0F2C54 #540F2C
tetradic
#2C540F #0F4F54 #370F54 #54150F
square
#2C540F #0F4F54 #370F54 #54150F
split-complementary
#2C540F #150F54 #540F4F
monochromatic
#0E1A05 #112006 #2C540F #478818 #62BC22

Accessibility & contrast

On white

8.82
#2C540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C540F
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C540F#FFFFFF#000000##FFFFFF
##2C540F1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C02
Deuteranopia (green-blind)
#524916
Tritanopia (blue-blind)
#2B5147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c540f;
/* rgb */ color: rgb(44, 84, 15);
/* oklch */ color: oklch(40.1% 0.106 135.3);
Tailwind
colors: {
  custom: {
    50: '#6a8453',
    500: '#2c540f',
    950: '#000000',
  },
}
SCSS
$custom: #2c540f;
$custom-light: #6a8453;
$custom-dark: #000000;
JSON
{
  "hex": "#2c540f",
  "rgb": {
    "r": 44,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 94.783,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40132,
    "c": 0.10641,
    "h": 135.3
  },
  "luminance": 0.06911
}

Semantic roles & 50–950 ramp

primary
#2C540F
secondary
#67318E
accent
#3BEDA2
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2C540F

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

Preview Lab → · Contrast checker → · Palette generator →

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