#332D02#332D02

#332D02 is a dark, muted yellow. Relative luminance 0.026; OKLCH L 29.5% C 0.059 H 101.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#332D02
RGBrgb(51, 45, 2)
HSLhsl(53, 92%, 10%)
HSVhsv(53, 96%, 20%)
CMYKcmyk(0%, 11.8%, 96.1%, 80%)
CIE-LABlab(18.30, -2.91, 25.34)
CIE-LCHlch(18.30, 25.50, 96.56°)
OKLaboklab(29.47% -0.0114 0.0584)
OKLCHoklch(29.47% 0.059 101.1)
XYZxyz(2.3147, 2.5851, 0.4345)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332D02 #020833
analogous
#331402 #332D02 #203302
triadic
#332D02 #02332D #2D0233
tetradic
#332D02 #023314 #020833 #330220
square
#332D02 #023314 #020833 #330220
split-complementary
#332D02 #022033 #140233
monochromatic
#1D1A01 #1D1A01 #332D02 #6E6104 #A99507

Accessibility & contrast

On white

13.84
#332D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#332D02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332D02
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332D02#FFFFFF#000000##FFFFFF
##332D021.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332B00
Deuteranopia (green-blind)
#342E04
Tritanopia (blue-blind)
#382925
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #332d02;
/* rgb */ color: rgb(51, 45, 2);
/* oklch */ color: oklch(29.5% 0.059 101.1);
Tailwind
colors: {
  custom: {
    50: '#6d6548',
    500: '#332d02',
    950: '#000000',
  },
}
SCSS
$custom: #332d02;
$custom-light: #6d6548;
$custom-dark: #000000;
JSON
{
  "hex": "#332d02",
  "rgb": {
    "r": 51,
    "g": 45,
    "b": 2
  },
  "hsl": {
    "h": 52.653,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.2947,
    "c": 0.05947,
    "h": 101.1
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#332D02
secondary
#1A2577
accent
#43FF29
background
#F6F6F4
surface
#ECEBE6
border
#C7C6C2
text
#070500
muted
#7A7A77

Preview Lab

Preview with #332D02

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

Preview Lab → · Contrast checker → · Palette generator →

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