#2A540D#2A540D

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

Color values

HEX#2A540D
RGBrgb(42, 84, 13)
HSLhsl(95, 73%, 19%)
HSVhsv(95, 85%, 33%)
CMYKcmyk(50%, 0%, 84.5%, 67.1%)
CIE-LABlab(31.49, -27.96, 34.11)
CIE-LCHlch(31.49, 44.10, 129.35°)
OKLaboklab(40.01% -0.078 0.0758)
OKLCHoklch(40.01% 0.109 135.8)
XYZxyz(4.1977, 6.8617, 1.4839)
Luminance0.0686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A540D #370D54
analogous
#4E540D #2A540D #0D5414
triadic
#2A540D #0D2A54 #540D2A
tetradic
#2A540D #0D4E54 #370D54 #54140D
square
#2A540D #0D4E54 #370D54 #54140D
split-complementary
#2A540D #140D54 #540D4E
monochromatic
#0D1A04 #101F05 #2A540D #448915 #5FBE1D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A540D#FFFFFF#000000##FFFFFF
##2A540D1.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)
#524915
Tritanopia (blue-blind)
#285147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a540d;
/* rgb */ color: rgb(42, 84, 13);
/* oklch */ color: oklch(40.0% 0.109 135.8);
Tailwind
colors: {
  custom: {
    50: '#688452',
    500: '#2a540d',
    950: '#000000',
  },
}
SCSS
$custom: #2a540d;
$custom-light: #688452;
$custom-dark: #000000;
JSON
{
  "hex": "#2a540d",
  "rgb": {
    "r": 42,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 95.493,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.40009,
    "c": 0.10876,
    "h": 135.8
  },
  "luminance": 0.06862
}

Semantic roles & 50–950 ramp

primary
#2A540D
secondary
#672E8F
accent
#38F0A5
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B02
muted
#7A7C78

Preview Lab

Preview with #2A540D

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

Preview Lab → · Contrast checker → · Palette generator →

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