#2A4B15#2A4B15

#2A4B15 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.4% C 0.090 H 135.4°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2A4B15
RGBrgb(42, 75, 21)
HSLhsl(97, 56%, 19%)
HSVhsv(97, 72%, 29%)
CMYKcmyk(44%, 0%, 72%, 70.6%)
CIE-LABlab(28.32, -23.03, 27.47)
CIE-LCHlch(28.32, 35.85, 129.98°)
OKLaboklab(37.43% -0.064 0.0632)
OKLCHoklch(37.43% 0.09 135.4)
XYZxyz(3.6062, 5.5784, 1.5960)
Luminance0.0558 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B15 #36154B
analogous
#454B15 #2A4B15 #154B1B
triadic
#2A4B15 #152A4B #4B152A
tetradic
#2A4B15 #15454B #36154B #4B1B15
square
#2A4B15 #15454B #36154B #4B1B15
split-complementary
#2A4B15 #1B154B #4B1545
monochromatic
#0D1807 #0F1B08 #2A4B15 #457B22 #60AB30

Accessibility & contrast

On white

9.93
#2A4B15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A4B15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4B15
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B15#FFFFFF#000000##FFFFFF
##2A4B151.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E450E
Deuteranopia (green-blind)
#494219
Tritanopia (blue-blind)
#294840
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a4b15;
/* rgb */ color: rgb(42, 75, 21);
/* oklch */ color: oklch(37.4% 0.090 135.4);
Tailwind
colors: {
  custom: {
    50: '#677d55',
    500: '#2a4b15',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b15;
$custom-light: #677d55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b15",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 21
  },
  "hsl": {
    "h": 96.667,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.37433,
    "c": 0.08995,
    "h": 135.4
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#2A4B15
secondary
#663983
accent
#48E0A5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4B15

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

Preview Lab → · Contrast checker → · Palette generator →

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