#2A5F0E#2A5F0E

#2A5F0E is a dark, vivid yellow-green. Relative luminance 0.087; OKLCH L 43.2% C 0.123 H 137.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2A5F0E
RGBrgb(42, 95, 14)
HSLhsl(99, 74%, 21%)
HSVhsv(99, 85%, 37%)
CMYKcmyk(55.8%, 0%, 85.3%, 62.7%)
CIE-LABlab(35.42, -32.71, 37.45)
CIE-LCHlch(35.42, 49.73, 131.13°)
OKLaboklab(43.24% -0.0907 0.083)
OKLCHoklch(43.24% 0.123 137.6)
XYZxyz(5.1261, 8.7080, 1.8261)
Luminance0.0871 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F0E #430E5F
analogous
#535F0E #2A5F0E #0E5F1B
triadic
#2A5F0E #0E2A5F #5F0E2A
tetradic
#2A5F0E #0E535F #430E5F #5F1B0E
square
#2A5F0E #0E535F #430E5F #5F1B0E
split-complementary
#2A5F0E #1B0E5F #5F0E53
monochromatic
#0C1B04 #122A06 #2A5F0E #429416 #59CA1E

Accessibility & contrast

On white

7.66
#2A5F0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A5F0E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5F0E
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F0E#FFFFFF#000000##FFFFFF
##2A5F0E1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5C5218
Tritanopia (blue-blind)
#265B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5f0e;
/* rgb */ color: rgb(42, 95, 14);
/* oklch */ color: oklch(43.2% 0.123 137.6);
Tailwind
colors: {
  custom: {
    50: '#6a8d55',
    500: '#2a5f0e',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f0e;
$custom-light: #6a8d55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f0e",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 14
  },
  "hsl": {
    "h": 99.259,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43241,
    "c": 0.12293,
    "h": 137.6
  },
  "luminance": 0.08708
}

Semantic roles & 50–950 ramp

primary
#2A5F0E
secondary
#753099
accent
#37F1B1
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5F0E

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

Preview Lab → · Contrast checker → · Palette generator →

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