#2A4312#2A4312

#2A4312 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 35.0% C 0.080 H 132.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2A4312
RGBrgb(42, 67, 18)
HSLhsl(91, 58%, 17%)
HSVhsv(91, 73%, 26%)
CMYKcmyk(37.3%, 0%, 73.1%, 73.7%)
CIE-LABlab(25.41, -19.25, 25.82)
CIE-LCHlch(25.41, 32.21, 126.70°)
OKLaboklab(35.05% -0.054 0.0593)
OKLCHoklch(35.05% 0.08 132.3)
XYZxyz(3.0711, 4.5501, 1.2886)
Luminance0.0455 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4312 #2B1243
analogous
#434312 #2A4312 #124313
triadic
#2A4312 #122A43 #43122A
tetradic
#2A4312 #124343 #2B1243 #431312
square
#2A4312 #124343 #2B1243 #431312
split-complementary
#2A4312 #131243 #431243
monochromatic
#0F1806 #0F1806 #2A4312 #48731F #66A32C

Accessibility & contrast

On white

10.99
#2A4312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A4312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4312
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4312#FFFFFF#000000##FFFFFF
##2A43121.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D0C
Deuteranopia (green-blind)
#433C16
Tritanopia (blue-blind)
#2B4039
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a4312;
/* rgb */ color: rgb(42, 67, 18);
/* oklch */ color: oklch(35.0% 0.080 132.3);
Tailwind
colors: {
  custom: {
    50: '#667752',
    500: '#2a4312',
    950: '#000000',
  },
}
SCSS
$custom: #2a4312;
$custom-light: #667752;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4312",
  "rgb": {
    "r": 42,
    "g": 67,
    "b": 18
  },
  "hsl": {
    "h": 90.612,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.35048,
    "c": 0.08016,
    "h": 132.3
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#2A4312
secondary
#59357C
accent
#47E195
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A4312

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

Preview Lab → · Contrast checker → · Palette generator →

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