#2A5E0D#2A5E0D

#2A5E0D is a dark, vivid yellow-green. Relative luminance 0.085; OKLCH L 42.9% C 0.122 H 137.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#2A5E0D
RGBrgb(42, 94, 13)
HSLhsl(99, 76%, 21%)
HSVhsv(99, 86%, 37%)
CMYKcmyk(55.3%, 0%, 86.2%, 63.1%)
CIE-LABlab(35.06, -32.35, 37.45)
CIE-LCHlch(35.06, 49.48, 130.82°)
OKLaboklab(42.94% -0.0898 0.0828)
OKLCHoklch(42.94% 0.122 137.3)
XYZxyz(5.0300, 8.5263, 1.7614)
Luminance0.0853 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5E0D #410D5E
analogous
#525E0D #2A5E0D #0D5E19
triadic
#2A5E0D #0D2A5E #5E0D2A
tetradic
#2A5E0D #0D525E #410D5E #5E190D
square
#2A5E0D #0D525E #410D5E #5E190D
split-complementary
#2A5E0D #190D5E #5E0D52
monochromatic
#0C1B04 #122806 #2A5E0D #429414 #5ACA1C

Accessibility & contrast

On white

7.76
#2A5E0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A5E0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5E0D
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5E0D#FFFFFF#000000##FFFFFF
##2A5E0D1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615500
Deuteranopia (green-blind)
#5B5117
Tritanopia (blue-blind)
#265A4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5e0d;
/* rgb */ color: rgb(42, 94, 13);
/* oklch */ color: oklch(42.9% 0.122 137.3);
Tailwind
colors: {
  custom: {
    50: '#6a8c54',
    500: '#2a5e0d',
    950: '#000000',
  },
}
SCSS
$custom: #2a5e0d;
$custom-light: #6a8c54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5e0d",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 13
  },
  "hsl": {
    "h": 98.519,
    "s": 75.701,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42943,
    "c": 0.12213,
    "h": 137.3
  },
  "luminance": 0.08527
}

Semantic roles & 50–950 ramp

primary
#2A5E0D
secondary
#722F98
accent
#36F2AF
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5E0D

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

Preview Lab → · Contrast checker → · Palette generator →

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