#313902#313902

#313902 is a dark, moderate yellow. Relative luminance 0.036; OKLCH L 32.6% C 0.074 H 118.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#313902
RGBrgb(49, 57, 2)
HSLhsl(69, 93%, 12%)
HSVhsv(69, 96%, 22%)
CMYKcmyk(14%, 0%, 96.5%, 77.6%)
CIE-LABlab(22.24, -11.52, 29.70)
CIE-LCHlch(22.24, 31.86, 111.20°)
OKLaboklab(32.58% -0.0351 0.0653)
OKLCHoklch(32.58% 0.074 118.2)
XYZxyz(2.7408, 3.5836, 0.6047)
Luminance0.0358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313902 #0A0239
analogous
#392602 #313902 #163902
triadic
#313902 #023139 #390231
tetradic
#313902 #023926 #0A0239 #390216
square
#313902 #023926 #0A0239 #390216
split-complementary
#313902 #021639 #260239
monochromatic
#191E01 #191E01 #313902 #647404 #97AF06

Accessibility & contrast

On white

12.23
#313902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#313902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313902
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313902#FFFFFF#000000##FFFFFF
##3139021.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313902;
/* rgb */ color: rgb(49, 57, 2);
/* oklch */ color: oklch(32.6% 0.074 118.2);
Tailwind
colors: {
  custom: {
    50: '#6b6f49',
    500: '#313902',
    950: '#000000',
  },
}
SCSS
$custom: #313902;
$custom-light: #6b6f49;
$custom-dark: #000000;
JSON
{
  "hex": "#313902",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 2
  },
  "hsl": {
    "h": 68.727,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.32577,
    "c": 0.07416,
    "h": 118.2
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#313902
secondary
#291A7D
accent
#29FF48
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313902

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

Preview Lab → · Contrast checker → · Palette generator →

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