#2A4915#2A4915

#2A4915 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.087 H 134.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2A4915
RGBrgb(42, 73, 21)
HSLhsl(96, 55%, 18%)
HSVhsv(96, 71%, 29%)
CMYKcmyk(42.5%, 0%, 71.2%, 71.4%)
CIE-LABlab(27.60, -22.04, 26.69)
CIE-LCHlch(27.60, 34.61, 129.54°)
OKLaboklab(36.85% -0.0613 0.0615)
OKLCHoklch(36.85% 0.087 134.9)
XYZxyz(3.4727, 5.3113, 1.5515)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4915 #341549
analogous
#444915 #2A4915 #15491A
triadic
#2A4915 #152A49 #49152A
tetradic
#2A4915 #154449 #341549 #491A15
square
#2A4915 #154449 #341549 #491A15
split-complementary
#2A4915 #1A1549 #491544
monochromatic
#0E1807 #0F1907 #2A4915 #457923 #61A830

Accessibility & contrast

On white

10.18
#2A4915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A4915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4915
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4915#FFFFFF#000000##FFFFFF
##2A49151.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430F
Deuteranopia (green-blind)
#484019
Tritanopia (blue-blind)
#29463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4915;
/* rgb */ color: rgb(42, 73, 21);
/* oklch */ color: oklch(36.8% 0.087 134.9);
Tailwind
colors: {
  custom: {
    50: '#667c55',
    500: '#2a4915',
    950: '#000000',
  },
}
SCSS
$custom: #2a4915;
$custom-light: #667c55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4915",
  "rgb": {
    "r": 42,
    "g": 73,
    "b": 21
  },
  "hsl": {
    "h": 95.769,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.36845,
    "c": 0.08685,
    "h": 134.9
  },
  "luminance": 0.05311
}

Semantic roles & 50–950 ramp

primary
#2A4915
secondary
#643981
accent
#49DFA2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4915

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

Preview Lab → · Contrast checker → · Palette generator →

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