#2A5B0E#2A5B0E

#2A5B0E is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.118 H 137.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2A5B0E
RGBrgb(42, 91, 14)
HSLhsl(98, 73%, 21%)
HSVhsv(98, 85%, 36%)
CMYKcmyk(53.8%, 0%, 84.6%, 64.3%)
CIE-LABlab(33.99, -31.00, 36.12)
CIE-LCHlch(33.99, 47.60, 130.64°)
OKLaboklab(42.07% -0.0861 0.0802)
OKLCHoklch(42.07% 0.118 137)
XYZxyz(4.7750, 8.0058, 1.7090)
Luminance0.0801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5B0E #3F0E5B
analogous
#505B0E #2A5B0E #0E5B19
triadic
#2A5B0E #0E2A5B #5B0E2A
tetradic
#2A5B0E #0E505B #3F0E5B #5B190E
square
#2A5B0E #0E505B #3F0E5B #5B190E
split-complementary
#2A5B0E #190E5B #5B0E50
monochromatic
#0C1B04 #122606 #2A5B0E #429016 #5BC51E

Accessibility & contrast

On white

8.07
#2A5B0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A5B0E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5B0E
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5B0E#FFFFFF#000000##FFFFFF
##2A5B0E1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5200
Deuteranopia (green-blind)
#584E17
Tritanopia (blue-blind)
#27574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5b0e;
/* rgb */ color: rgb(42, 91, 14);
/* oklch */ color: oklch(42.1% 0.118 137.0);
Tailwind
colors: {
  custom: {
    50: '#6a8a54',
    500: '#2a5b0e',
    950: '#000000',
  },
}
SCSS
$custom: #2a5b0e;
$custom-light: #6a8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5b0e",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 14
  },
  "hsl": {
    "h": 98.182,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42071,
    "c": 0.11767,
    "h": 137
  },
  "luminance": 0.08006
}

Semantic roles & 50–950 ramp

primary
#2A5B0E
secondary
#703095
accent
#38F0AD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5B0E

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

Preview Lab → · Contrast checker → · Palette generator →

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