#2A3A12#2A3A12

#2A3A12 is a dark, moderate yellow-green. Relative luminance 0.036; OKLCH L 32.4% C 0.066 H 128.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2A3A12
RGBrgb(42, 58, 18)
HSLhsl(84, 53%, 15%)
HSVhsv(84, 69%, 23%)
CMYKcmyk(27.6%, 0%, 69%, 77.3%)
CIE-LABlab(22.17, -14.30, 22.26)
CIE-LCHlch(22.17, 26.46, 122.72°)
OKLaboklab(32.41% -0.0404 0.0517)
OKLCHoklch(32.41% 0.066 128)
XYZxyz(2.5771, 3.5620, 1.1239)
Luminance0.0356 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A12 #22123A
analogous
#3A3612 #2A3A12 #163A12
triadic
#2A3A12 #122A3A #3A122A
tetradic
#2A3A12 #123A36 #22123A #3A1216
square
#2A3A12 #123A36 #22123A #3A1216
split-complementary
#2A3A12 #12163A #36123A
monochromatic
#111707 #111707 #2A3A12 #4C6920 #6E972F

Accessibility & contrast

On white

12.26
#2A3A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3A12
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A12#FFFFFF#000000##FFFFFF
##2A3A121.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3a12;
/* rgb */ color: rgb(42, 58, 18);
/* oklch */ color: oklch(32.4% 0.066 128.0);
Tailwind
colors: {
  custom: {
    50: '#657051',
    500: '#2a3a12',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a12;
$custom-light: #657051;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a12",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 18
  },
  "hsl": {
    "h": 84,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.0656,
    "h": 128
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#2A3A12
secondary
#4E3573
accent
#4CDC85
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060702
muted
#7A7A78

Preview Lab

Preview with #2A3A12

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

Preview Lab → · Contrast checker → · Palette generator →

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