#303902#303902

#303902 is a dark, moderate yellow. Relative luminance 0.036; OKLCH L 32.5% C 0.075 H 119.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#303902
RGBrgb(48, 57, 2)
HSLhsl(70, 93%, 12%)
HSVhsv(70, 96%, 22%)
CMYKcmyk(15.8%, 0%, 96.5%, 77.6%)
CIE-LABlab(22.16, -12.04, 29.58)
CIE-LCHlch(22.16, 31.94, 112.14°)
OKLaboklab(32.48% -0.0364 0.0652)
OKLCHoklch(32.48% 0.075 119.2)
XYZxyz(2.6931, 3.5590, 0.6025)
Luminance0.0356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303902 #0B0239
analogous
#392702 #303902 #153902
triadic
#303902 #023039 #390230
tetradic
#303902 #023927 #0B0239 #390215
square
#303902 #023927 #0B0239 #390215
split-complementary
#303902 #021539 #270239
monochromatic
#191E01 #191E01 #303902 #627404 #94AF06

Accessibility & contrast

On white

12.27
#303902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#303902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303902
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303902#FFFFFF#000000##FFFFFF
##3039021.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3500
Deuteranopia (green-blind)
#3D3507
Tritanopia (blue-blind)
#34352F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #303902;
/* rgb */ color: rgb(48, 57, 2);
/* oklch */ color: oklch(32.5% 0.075 119.2);
Tailwind
colors: {
  custom: {
    50: '#6a6f49',
    500: '#303902',
    950: '#000000',
  },
}
SCSS
$custom: #303902;
$custom-light: #6a6f49;
$custom-dark: #000000;
JSON
{
  "hex": "#303902",
  "rgb": {
    "r": 48,
    "g": 57,
    "b": 2
  },
  "hsl": {
    "h": 69.818,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.32484,
    "c": 0.07465,
    "h": 119.2
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#303902
secondary
#2A1A7D
accent
#29FF4C
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #303902

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

Preview Lab → · Contrast checker → · Palette generator →

#303902 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva