#313803#313803

#313803 is a dark, moderate yellow. Relative luminance 0.035; OKLCH L 32.3% C 0.072 H 117.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#313803
RGBrgb(49, 56, 3)
HSLhsl(68, 90%, 12%)
HSVhsv(68, 95%, 22%)
CMYKcmyk(12.5%, 0%, 94.6%, 78%)
CIE-LABlab(21.90, -10.85, 28.93)
CIE-LCHlch(21.90, 30.90, 110.56°)
OKLaboklab(32.3% -0.0331 0.0639)
OKLCHoklch(32.3% 0.072 117.4)
XYZxyz(2.6973, 3.4879, 0.6173)
Luminance0.0349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313803 #0A0338
analogous
#382503 #313803 #173803
triadic
#313803 #033138 #380331
tetradic
#313803 #033825 #0A0338 #380317
square
#313803 #033825 #0A0338 #380317
split-complementary
#313803 #031738 #250338
monochromatic
#191D02 #191D02 #313803 #647206 #97AC09

Accessibility & contrast

On white

12.37
#313803 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#313803 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313803
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313803#FFFFFF#000000##FFFFFF
##3138031.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3400
Deuteranopia (green-blind)
#3C3507
Tritanopia (blue-blind)
#35342E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313803;
/* rgb */ color: rgb(49, 56, 3);
/* oklch */ color: oklch(32.3% 0.072 117.4);
Tailwind
colors: {
  custom: {
    50: '#6b6e49',
    500: '#313803',
    950: '#000000',
  },
}
SCSS
$custom: #313803;
$custom-light: #6b6e49;
$custom-dark: #000000;
JSON
{
  "hex": "#313803",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 3
  },
  "hsl": {
    "h": 67.925,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.32303,
    "c": 0.07199,
    "h": 117.4
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#313803
secondary
#291C7B
accent
#29FF45
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313803

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

Preview Lab → · Contrast checker → · Palette generator →

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