#2A4117#2A4117

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

Color values

HEX#2A4117
RGBrgb(42, 65, 23)
HSLhsl(93, 48%, 17%)
HSVhsv(93, 65%, 25%)
CMYKcmyk(35.4%, 0%, 64.6%, 74.5%)
CIE-LABlab(24.75, -17.63, 22.43)
CIE-LCHlch(24.75, 28.53, 128.17°)
OKLaboklab(34.53% -0.0491 0.0527)
OKLCHoklch(34.53% 0.072 133)
XYZxyz(2.9997, 4.3346, 1.4891)
Luminance0.0433 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4117 #2E1741
analogous
#3F4117 #2A4117 #174119
triadic
#2A4117 #172A41 #41172A
tetradic
#2A4117 #173F41 #2E1741 #411917
square
#2A4117 #173F41 #2E1741 #411917
split-complementary
#2A4117 #191741 #41173F
monochromatic
#0F1708 #0F1708 #2A4117 #476E27 #649B37

Accessibility & contrast

On white

11.25
#2A4117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4117
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4117#FFFFFF#000000##FFFFFF
##2A41171.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C13
Deuteranopia (green-blind)
#403A1A
Tritanopia (blue-blind)
#2A3E38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a4117;
/* rgb */ color: rgb(42, 65, 23);
/* oklch */ color: oklch(34.5% 0.072 133.0);
Tailwind
colors: {
  custom: {
    50: '#657555',
    500: '#2a4117',
    950: '#000000',
  },
}
SCSS
$custom: #2a4117;
$custom-light: #657555;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4117",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 23
  },
  "hsl": {
    "h": 92.857,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.34526,
    "c": 0.07198,
    "h": 133
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#2A4117
secondary
#5D3C78
accent
#50D79A
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2A4117

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

Preview Lab → · Contrast checker → · Palette generator →

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