#2A5A0F#2A5A0F

#2A5A0F is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.116 H 137.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2A5A0F
RGBrgb(42, 90, 15)
HSLhsl(98, 71%, 21%)
HSVhsv(98, 83%, 35%)
CMYKcmyk(53.3%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.64, -30.50, 35.44)
CIE-LCHlch(33.64, 46.76, 130.72°)
OKLaboklab(41.78% -0.0847 0.0789)
OKLCHoklch(41.78% 0.116 137)
XYZxyz(4.6971, 7.8387, 1.7174)
Luminance0.0784 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5A0F #3F0F5A
analogous
#4F5A0F #2A5A0F #0F5A19
triadic
#2A5A0F #0F2A5A #5A0F2A
tetradic
#2A5A0F #0F4F5A #3F0F5A #5A190F
square
#2A5A0F #0F4F5A #3F0F5A #5A190F
split-complementary
#2A5A0F #190F5A #5A0F4F
monochromatic
#0C1A04 #122606 #2A5A0F #428E18 #5BC320

Accessibility & contrast

On white

8.18
#2A5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2A5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5A0F
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5A0F#FFFFFF#000000##FFFFFF
##2A5A0F1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5200
Deuteranopia (green-blind)
#574E17
Tritanopia (blue-blind)
#27564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5a0f;
/* rgb */ color: rgb(42, 90, 15);
/* oklch */ color: oklch(41.8% 0.116 137.0);
Tailwind
colors: {
  custom: {
    50: '#698954',
    500: '#2a5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5a0f;
$custom-light: #698954;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5a0f",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 98.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41784,
    "c": 0.11577,
    "h": 137
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#2A5A0F
secondary
#703194
accent
#3AEEAD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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