#302A12#302A12

#302A12 is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.5% C 0.039 H 95.6°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#302A12
RGBrgb(48, 42, 18)
HSLhsl(48, 45%, 13%)
HSVhsv(48, 63%, 19%)
CMYKcmyk(0%, 12.5%, 62.5%, 81.2%)
CIE-LABlab(17.12, -1.23, 16.54)
CIE-LCHlch(17.12, 16.58, 94.25°)
OKLaboklab(28.51% -0.0039 0.0393)
OKLCHoklch(28.51% 0.039 95.6)
XYZxyz(2.1561, 2.3281, 0.9079)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302A12 #121830
analogous
#301B12 #302A12 #273012
triadic
#302A12 #12302A #2A1230
tetradic
#302A12 #12301B #121830 #301227
square
#302A12 #12301B #121830 #301227
split-complementary
#302A12 #122730 #1B1230
monochromatic
#161308 #161308 #302A12 #5D5123 #897833

Accessibility & contrast

On white

14.33
#302A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#302A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302A12
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302A12#FFFFFF#000000##FFFFFF
##302A121.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2910
Deuteranopia (green-blind)
#302B13
Tritanopia (blue-blind)
#342724
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #302a12;
/* rgb */ color: rgb(48, 42, 18);
/* oklch */ color: oklch(28.5% 0.039 95.6);
Tailwind
colors: {
  custom: {
    50: '#696350',
    500: '#302a12',
    950: '#000000',
  },
}
SCSS
$custom: #302a12;
$custom-light: #696350;
$custom-dark: #000000;
JSON
{
  "hex": "#302a12",
  "rgb": {
    "r": 48,
    "g": 42,
    "b": 18
  },
  "hsl": {
    "h": 48,
    "s": 45.455,
    "l": 12.941
  },
  "oklch": {
    "l": 0.28513,
    "c": 0.03944,
    "h": 95.6
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#302A12
secondary
#364068
accent
#6DD553
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#060502
muted
#7A7978

Preview Lab

Preview with #302A12

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

Preview Lab → · Contrast checker → · Palette generator →

#302A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva