#2A3A0C#2A3A0C

#2A3A0C is a dark, moderate yellow-green. Relative luminance 0.035; OKLCH L 32.3% C 0.071 H 126.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2A3A0C
RGBrgb(42, 58, 12)
HSLhsl(81, 66%, 14%)
HSVhsv(81, 79%, 23%)
CMYKcmyk(27.6%, 0%, 79.3%, 77.3%)
CIE-LABlab(22.11, -14.88, 25.26)
CIE-LCHlch(22.11, 29.32, 120.49°)
OKLaboklab(32.34% -0.0426 0.0571)
OKLCHoklch(32.34% 0.071 126.7)
XYZxyz(2.5343, 3.5449, 0.8985)
Luminance0.0355 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A0C #1C0C3A
analogous
#3A330C #2A3A0C #133A0C
triadic
#2A3A0C #0C2A3A #3A0C2A
tetradic
#2A3A0C #0C3A33 #1C0C3A #3A0C13
square
#2A3A0C #0C3A33 #1C0C3A #3A0C13
split-complementary
#2A3A0C #0C133A #330C3A
monochromatic
#121905 #121905 #2A3A0C #4F6D16 #739F21

Accessibility & contrast

On white

12.29
#2A3A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A3A0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A0C
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A0C#FFFFFF#000000##FFFFFF
##2A3A0C1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3606
Deuteranopia (green-blind)
#3B3510
Tritanopia (blue-blind)
#2C3731
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a3a0c;
/* rgb */ color: rgb(42, 58, 12);
/* oklch */ color: oklch(32.3% 0.071 126.7);
Tailwind
colors: {
  custom: {
    50: '#65704e',
    500: '#2a3a0c',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a0c;
$custom-light: #65704e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a0c",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 12
  },
  "hsl": {
    "h": 80.87,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.32344,
    "c": 0.07127,
    "h": 126.7
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#2A3A0C
secondary
#462C76
accent
#3FE97A
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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