#2A5D0F#2A5D0F

#2A5D0F is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.7% C 0.120 H 137.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2A5D0F
RGBrgb(42, 93, 15)
HSLhsl(99, 72%, 21%)
HSVhsv(99, 84%, 36%)
CMYKcmyk(54.8%, 0%, 83.9%, 63.5%)
CIE-LABlab(34.71, -31.80, 36.45)
CIE-LCHlch(34.71, 48.37, 131.10°)
OKLaboklab(42.66% -0.0882 0.081)
OKLCHoklch(42.66% 0.12 137.4)
XYZxyz(4.9553, 8.3551, 1.8034)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5D0F #420F5D
analogous
#515D0F #2A5D0F #0F5D1B
triadic
#2A5D0F #0F2A5D #5D0F2A
tetradic
#2A5D0F #0F515D #420F5D #5D1B0F
square
#2A5D0F #0F515D #420F5D #5D1B0F
split-complementary
#2A5D0F #1B0F5D #5D0F51
monochromatic
#0C1A04 #122806 #2A5D0F #429217 #5AC620

Accessibility & contrast

On white

7.86
#2A5D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A5D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5D0F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5D0F#FFFFFF#000000##FFFFFF
##2A5D0F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#26594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5d0f;
/* rgb */ color: rgb(42, 93, 15);
/* oklch */ color: oklch(42.7% 0.120 137.4);
Tailwind
colors: {
  custom: {
    50: '#6a8b55',
    500: '#2a5d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5d0f;
$custom-light: #6a8b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5d0f",
  "rgb": {
    "r": 42,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 99.231,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42663,
    "c": 0.11977,
    "h": 137.4
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#2A5D0F
secondary
#733196
accent
#39EFB0
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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