#332A02#332A02

#332A02 is a dark, muted yellow. Relative luminance 0.024; OKLCH L 28.7% C 0.057 H 95.9°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#332A02
RGBrgb(51, 42, 2)
HSLhsl(49, 92%, 10%)
HSVhsv(49, 96%, 20%)
CMYKcmyk(0%, 17.6%, 96.1%, 80%)
CIE-LABlab(17.29, -0.92, 24.13)
CIE-LCHlch(17.29, 24.14, 92.18°)
OKLaboklab(28.67% -0.0058 0.0566)
OKLCHoklch(28.67% 0.057 95.9)
XYZxyz(2.2043, 2.3642, 0.3977)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332A02 #020B33
analogous
#331202 #332A02 #233302
triadic
#332A02 #02332A #2A0233
tetradic
#332A02 #023312 #020B33 #330223
square
#332A02 #023312 #020B33 #330223
split-complementary
#332A02 #022333 #120233
monochromatic
#1D1801 #1D1801 #332A02 #6E5A04 #A98B07

Accessibility & contrast

On white

14.26
#332A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#332A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332A02
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332A02#FFFFFF#000000##FFFFFF
##332A021.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#322C04
Tritanopia (blue-blind)
#382622
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #332a02;
/* rgb */ color: rgb(51, 42, 2);
/* oklch */ color: oklch(28.7% 0.057 95.9);
Tailwind
colors: {
  custom: {
    50: '#6d6348',
    500: '#332a02',
    950: '#000000',
  },
}
SCSS
$custom: #332a02;
$custom-light: #6d6348;
$custom-dark: #000000;
JSON
{
  "hex": "#332a02",
  "rgb": {
    "r": 51,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 48.98,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28672,
    "c": 0.05686,
    "h": 95.9
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#332A02
secondary
#1A2B77
accent
#50FF29
background
#F6F5F4
surface
#ECEAE6
border
#C7C6C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #332A02

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

Preview Lab → · Contrast checker → · Palette generator →

#332A02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva