#2A4211#2A4211

#2A4211 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.079 H 131.7°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2A4211
RGBrgb(42, 66, 17)
HSLhsl(89, 59%, 16%)
HSVhsv(89, 74%, 26%)
CMYKcmyk(36.4%, 0%, 74.2%, 74.1%)
CIE-LABlab(25.04, -18.82, 25.93)
CIE-LCHlch(25.04, 32.03, 125.97°)
OKLaboklab(34.74% -0.0529 0.0593)
OKLCHoklch(34.74% 0.079 131.7)
XYZxyz(3.0042, 4.4290, 1.2268)
Luminance0.0443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4211 #291142
analogous
#424211 #2A4211 #124211
triadic
#2A4211 #112A42 #42112A
tetradic
#2A4211 #114242 #291142 #421112
square
#2A4211 #114242 #291142 #421112
split-complementary
#2A4211 #111242 #421142
monochromatic
#0F1806 #0F1806 #2A4211 #49731E #68A32A

Accessibility & contrast

On white

11.14
#2A4211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A4211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4211
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4211#FFFFFF#000000##FFFFFF
##2A42111.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D0A
Deuteranopia (green-blind)
#423B15
Tritanopia (blue-blind)
#2B3F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a4211;
/* rgb */ color: rgb(42, 66, 17);
/* oklch */ color: oklch(34.7% 0.079 131.7);
Tailwind
colors: {
  custom: {
    50: '#667652',
    500: '#2a4211',
    950: '#000000',
  },
}
SCSS
$custom: #2a4211;
$custom-light: #667652;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4211",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 17
  },
  "hsl": {
    "h": 89.388,
    "s": 59.036,
    "l": 16.275
  },
  "oklch": {
    "l": 0.34744,
    "c": 0.07947,
    "h": 131.7
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#2A4211
secondary
#57337C
accent
#46E292
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A4211

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

Preview Lab → · Contrast checker → · Palette generator →

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