#333A02#333A02

#333A02 is a dark, moderate yellow. Relative luminance 0.037; OKLCH L 33.0% C 0.075 H 117.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#333A02
RGBrgb(51, 58, 2)
HSLhsl(68, 93%, 12%)
HSVhsv(68, 97%, 23%)
CMYKcmyk(12.1%, 0%, 96.6%, 77.3%)
CIE-LABlab(22.77, -11.08, 30.31)
CIE-LCHlch(22.77, 32.27, 110.08°)
OKLaboklab(33.05% -0.034 0.0663)
OKLCHoklch(33.05% 0.075 117.1)
XYZxyz(2.8893, 3.7343, 0.6260)
Luminance0.0373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A02 #09023A
analogous
#3A2502 #333A02 #173A02
triadic
#333A02 #02333A #3A0233
tetradic
#333A02 #023A25 #09023A #3A0217
square
#333A02 #023A25 #09023A #3A0217
split-complementary
#333A02 #02173A #25023A
monochromatic
#1A1E01 #1A1E01 #333A02 #677504 #9BB006

Accessibility & contrast

On white

12.02
#333A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#333A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A02
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A02#FFFFFF#000000##FFFFFF
##333A021.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3600
Deuteranopia (green-blind)
#3E3707
Tritanopia (blue-blind)
#373630
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #333a02;
/* rgb */ color: rgb(51, 58, 2);
/* oklch */ color: oklch(33.0% 0.075 117.1);
Tailwind
colors: {
  custom: {
    50: '#6d7049',
    500: '#333a02',
    950: '#000000',
  },
}
SCSS
$custom: #333a02;
$custom-light: #6d7049;
$custom-dark: #000000;
JSON
{
  "hex": "#333a02",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 2
  },
  "hsl": {
    "h": 67.5,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.33048,
    "c": 0.07453,
    "h": 117.1
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#333A02
secondary
#271A7D
accent
#29FF44
background
#F6F6F4
surface
#ECECE7
border
#C7C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #333A02

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

Preview Lab → · Contrast checker → · Palette generator →

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