#2A540C#2A540C

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

Color values

HEX#2A540C
RGBrgb(42, 84, 12)
HSLhsl(95, 75%, 19%)
HSVhsv(95, 86%, 33%)
CMYKcmyk(50%, 0%, 85.7%, 67.1%)
CIE-LABlab(31.48, -28.02, 34.45)
CIE-LCHlch(31.48, 44.41, 129.12°)
OKLaboklab(40% -0.0782 0.0764)
OKLCHoklch(40% 0.109 135.7)
XYZxyz(4.1914, 6.8592, 1.4508)
Luminance0.0686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A540C #360C54
analogous
#4E540C #2A540C #0C5412
triadic
#2A540C #0C2A54 #540C2A
tetradic
#2A540C #0C4E54 #360C54 #54120C
square
#2A540C #0C4E54 #360C54 #54120C
split-complementary
#2A540C #120C54 #540C4E
monochromatic
#0D1B04 #0F1E04 #2A540C #458A14 #60BF1B

Accessibility & contrast

On white

8.85
#2A540C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2A540C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A540C
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A540C#FFFFFF#000000##FFFFFF
##2A540C1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a540c;
/* rgb */ color: rgb(42, 84, 12);
/* oklch */ color: oklch(40.0% 0.109 135.7);
Tailwind
colors: {
  custom: {
    50: '#698452',
    500: '#2a540c',
    950: '#000000',
  },
}
SCSS
$custom: #2a540c;
$custom-light: #698452;
$custom-dark: #000000;
JSON
{
  "hex": "#2a540c",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 12
  },
  "hsl": {
    "h": 95,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.40002,
    "c": 0.10933,
    "h": 135.7
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#2A540C
secondary
#662D8F
accent
#36F2A4
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070B02
muted
#7A7C78

Preview Lab

Preview with #2A540C

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

Preview Lab → · Contrast checker → · Palette generator →

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