#2A500F#2A500F

#2A500F is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.8% C 0.102 H 135.3°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2A500F
RGBrgb(42, 80, 15)
HSLhsl(95, 68%, 19%)
HSVhsv(95, 81%, 31%)
CMYKcmyk(47.5%, 0%, 81.3%, 68.6%)
CIE-LABlab(30.07, -25.97, 31.97)
CIE-LCHlch(30.07, 41.19, 129.09°)
OKLaboklab(38.85% -0.0725 0.0717)
OKLCHoklch(38.85% 0.102 135.3)
XYZxyz(3.9096, 6.2638, 1.4549)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A500F #350F50
analogous
#4A500F #2A500F #0F5014
triadic
#2A500F #0F2A50 #500F2A
tetradic
#2A500F #0F4A50 #350F50 #50140F
square
#2A500F #0F4A50 #350F50 #50140F
split-complementary
#2A500F #140F50 #500F4A
monochromatic
#0E1A05 #0F1C05 #2A500F #458419 #60B722

Accessibility & contrast

On white

9.32
#2A500F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A500F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A500F
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A500F#FFFFFF#000000##FFFFFF
##2A500F1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534904
Deuteranopia (green-blind)
#4E4616
Tritanopia (blue-blind)
#294D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a500f;
/* rgb */ color: rgb(42, 80, 15);
/* oklch */ color: oklch(38.8% 0.102 135.3);
Tailwind
colors: {
  custom: {
    50: '#688153',
    500: '#2a500f',
    950: '#000000',
  },
}
SCSS
$custom: #2a500f;
$custom-light: #688153;
$custom-dark: #000000;
JSON
{
  "hex": "#2a500f",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 15
  },
  "hsl": {
    "h": 95.077,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38846,
    "c": 0.10195,
    "h": 135.3
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#2A500F
secondary
#65318A
accent
#3DEBA3
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A500F

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

Preview Lab → · Contrast checker → · Palette generator →

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