#332B02#332B02

#332B02 is a dark, muted yellow. Relative luminance 0.024; OKLCH L 28.9% C 0.058 H 97.7°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#332B02
RGBrgb(51, 43, 2)
HSLhsl(50, 92%, 10%)
HSVhsv(50, 96%, 20%)
CMYKcmyk(0%, 15.7%, 96.1%, 80%)
CIE-LABlab(17.63, -1.59, 24.53)
CIE-LCHlch(17.63, 24.58, 93.70°)
OKLaboklab(28.94% -0.0077 0.0572)
OKLCHoklch(28.94% 0.058 97.7)
XYZxyz(2.2402, 2.4361, 0.4096)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B02 #020A33
analogous
#331202 #332B02 #223302
triadic
#332B02 #02332B #2B0233
tetradic
#332B02 #023312 #020A33 #330222
square
#332B02 #023312 #020A33 #330222
split-complementary
#332B02 #022233 #120233
monochromatic
#1D1901 #1D1901 #332B02 #6E5D04 #A98E07

Accessibility & contrast

On white

14.12
#332B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#332B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B02
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B02#FFFFFF#000000##FFFFFF
##332B021.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#332C04
Tritanopia (blue-blind)
#382723
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #332b02;
/* rgb */ color: rgb(51, 43, 2);
/* oklch */ color: oklch(28.9% 0.058 97.7);
Tailwind
colors: {
  custom: {
    50: '#6d6448',
    500: '#332b02',
    950: '#000000',
  },
}
SCSS
$custom: #332b02;
$custom-light: #6d6448;
$custom-dark: #000000;
JSON
{
  "hex": "#332b02",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 2
  },
  "hsl": {
    "h": 50.204,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.28937,
    "c": 0.05768,
    "h": 97.7
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#332B02
secondary
#1A2977
accent
#4CFF29
background
#F6F5F4
surface
#ECEAE6
border
#C7C6C2
text
#070500
muted
#7A7977

Preview Lab

Preview with #332B02

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

Preview Lab → · Contrast checker → · Palette generator →

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