#2A3A06#2A3A06

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

Color values

HEX#2A3A06
RGBrgb(42, 58, 6)
HSLhsl(78, 81%, 13%)
HSVhsv(78, 90%, 23%)
CMYKcmyk(27.6%, 0%, 89.7%, 77.3%)
CIE-LABlab(22.06, -15.33, 27.70)
CIE-LCHlch(22.06, 31.66, 118.96°)
OKLaboklab(32.29% -0.0445 0.0617)
OKLCHoklch(32.29% 0.076 125.8)
XYZxyz(2.5008, 3.5315, 0.7221)
Luminance0.0353 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A06 #16063A
analogous
#3A3006 #2A3A06 #103A06
triadic
#2A3A06 #062A3A #3A062A
tetradic
#2A3A06 #063A30 #16063A #3A0610
square
#2A3A06 #063A30 #16063A #3A0610
split-complementary
#2A3A06 #06103A #30063A
monochromatic
#141C03 #141C03 #2A3A06 #52710C #7AA911

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A3A06#FFFFFF#000000##FFFFFF
##2A3A061.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)
#3C350B
Tritanopia (blue-blind)
#2C3730
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a3a06;
/* rgb */ color: rgb(42, 58, 6);
/* oklch */ color: oklch(32.3% 0.076 125.8);
Tailwind
colors: {
  custom: {
    50: '#66704b',
    500: '#2a3a06',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a06;
$custom-light: #66704b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a06",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 6
  },
  "hsl": {
    "h": 78.462,
    "s": 81.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.3229,
    "c": 0.07604,
    "h": 125.8
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#2A3A06
secondary
#3D227A
accent
#30F86E
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3A06

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

Preview Lab → · Contrast checker → · Palette generator →

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