#2A3A04#2A3A04

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

Color values

HEX#2A3A04
RGBrgb(42, 58, 4)
HSLhsl(78, 87%, 12%)
HSVhsv(78, 93%, 23%)
CMYKcmyk(27.6%, 0%, 93.1%, 77.3%)
CIE-LABlab(22.04, -15.48, 28.50)
CIE-LCHlch(22.04, 32.43, 118.51°)
OKLaboklab(32.27% -0.0451 0.0632)
OKLCHoklch(32.27% 0.078 125.5)
XYZxyz(2.4898, 3.5271, 0.6645)
Luminance0.0353 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A04 #14043A
analogous
#3A2F04 #2A3A04 #0F3A04
triadic
#2A3A04 #042A3A #3A042A
tetradic
#2A3A04 #043A2F #14043A #3A040F
square
#2A3A04 #043A2F #14043A #3A040F
split-complementary
#2A3A04 #040F3A #2F043A
monochromatic
#151D02 #151D02 #2A3A04 #537308 #7DAD0C

Accessibility & contrast

On white

12.31
#2A3A04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3A04
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A04#FFFFFF#000000##FFFFFF
##2A3A041.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3500
Deuteranopia (green-blind)
#3C3509
Tritanopia (blue-blind)
#2C3730
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a3a04;
/* rgb */ color: rgb(42, 58, 4);
/* oklch */ color: oklch(32.3% 0.078 125.5);
Tailwind
colors: {
  custom: {
    50: '#66704a',
    500: '#2a3a04',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a04;
$custom-light: #66704a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a04",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 4
  },
  "hsl": {
    "h": 77.778,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.32272,
    "c": 0.07766,
    "h": 125.5
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#2A3A04
secondary
#3A1E7C
accent
#2BFD69
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3A04

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

Preview Lab → · Contrast checker → · Palette generator →

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