#2A4115#2A4115

#2A4115 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.5% C 0.074 H 132.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2A4115
RGBrgb(42, 65, 21)
HSLhsl(91, 51%, 17%)
HSVhsv(91, 68%, 25%)
CMYKcmyk(35.4%, 0%, 67.7%, 74.5%)
CIE-LABlab(24.72, -17.86, 23.50)
CIE-LCHlch(24.72, 29.52, 127.24°)
OKLaboklab(34.5% -0.0499 0.0547)
OKLCHoklch(34.5% 0.074 132.3)
XYZxyz(2.9805, 4.3269, 1.3875)
Luminance0.0433 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4115 #2C1541
analogous
#404115 #2A4115 #154116
triadic
#2A4115 #152A41 #41152A
tetradic
#2A4115 #154041 #2C1541 #411615
square
#2A4115 #154041 #2C1541 #411615
split-complementary
#2A4115 #161541 #411540
monochromatic
#0F1707 #0F1707 #2A4115 #486F24 #669E33

Accessibility & contrast

On white

11.26
#2A4115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A4115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4115
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4115#FFFFFF#000000##FFFFFF
##2A41151.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C10
Deuteranopia (green-blind)
#413A18
Tritanopia (blue-blind)
#2B3E38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a4115;
/* rgb */ color: rgb(42, 65, 21);
/* oklch */ color: oklch(34.5% 0.074 132.3);
Tailwind
colors: {
  custom: {
    50: '#657554',
    500: '#2a4115',
    950: '#000000',
  },
}
SCSS
$custom: #2a4115;
$custom-light: #657554;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4115",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 21
  },
  "hsl": {
    "h": 91.364,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.34498,
    "c": 0.07406,
    "h": 132.3
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#2A4115
secondary
#5A3979
accent
#4DDB97
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2A4115

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

Preview Lab → · Contrast checker → · Palette generator →

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