#2A5C0D#2A5C0D

#2A5C0D is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.4% C 0.120 H 137.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2A5C0D
RGBrgb(42, 92, 13)
HSLhsl(98, 75%, 21%)
HSVhsv(98, 86%, 36%)
CMYKcmyk(54.3%, 0%, 85.9%, 63.9%)
CIE-LABlab(34.35, -31.49, 36.79)
CIE-LCHlch(34.35, 48.43, 130.57°)
OKLaboklab(42.36% -0.0875 0.0814)
OKLCHoklch(42.36% 0.12 137.1)
XYZxyz(4.8545, 8.1752, 1.7029)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5C0D #3F0D5C
analogous
#515C0D #2A5C0D #0D5C18
triadic
#2A5C0D #0D2A5C #5C0D2A
tetradic
#2A5C0D #0D515C #3F0D5C #5C180D
square
#2A5C0D #0D515C #3F0D5C #5C180D
split-complementary
#2A5C0D #180D5C #5C0D51
monochromatic
#0C1B04 #122605 #2A5C0D #429215 #5BC71C

Accessibility & contrast

On white

7.97
#2A5C0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A5C0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5C0D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5C0D#FFFFFF#000000##FFFFFF
##2A5C0D1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#594F16
Tritanopia (blue-blind)
#27584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5c0d;
/* rgb */ color: rgb(42, 92, 13);
/* oklch */ color: oklch(42.4% 0.120 137.1);
Tailwind
colors: {
  custom: {
    50: '#6a8b54',
    500: '#2a5c0d',
    950: '#000000',
  },
}
SCSS
$custom: #2a5c0d;
$custom-light: #6a8b54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5c0d",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 13
  },
  "hsl": {
    "h": 97.975,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42357,
    "c": 0.11952,
    "h": 137.1
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#2A5C0D
secondary
#702F96
accent
#36F2AD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5C0D

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

Preview Lab → · Contrast checker → · Palette generator →

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