#313102#313102

#313102 is a dark, moderate yellow. Relative luminance 0.029; OKLCH L 30.3% C 0.064 H 109.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#313102
RGBrgb(49, 49, 2)
HSLhsl(60, 92%, 10%)
HSVhsv(60, 96%, 19%)
CMYKcmyk(0%, 0%, 95.9%, 80.8%)
CIE-LABlab(19.45, -6.60, 26.62)
CIE-LCHlch(19.45, 27.43, 103.93°)
OKLaboklab(30.33% -0.0216 0.0604)
OKLCHoklch(30.33% 0.064 109.7)
XYZxyz(2.3760, 2.8541, 0.4831)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313102 #020231
analogous
#311902 #313102 #1A3102
triadic
#313102 #023131 #310231
tetradic
#313102 #02311A #020231 #31021A
square
#313102 #02311A #020231 #31021A
split-complementary
#313102 #021931 #190231
monochromatic
#1D1D01 #1D1D01 #313102 #6C6C04 #A7A707

Accessibility & contrast

On white

13.37
#313102 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#313102 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313102
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313102#FFFFFF#000000##FFFFFF
##3131021.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362E00
Deuteranopia (green-blind)
#373005
Tritanopia (blue-blind)
#352D28
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #313102;
/* rgb */ color: rgb(49, 49, 2);
/* oklch */ color: oklch(30.3% 0.064 109.7);
Tailwind
colors: {
  custom: {
    50: '#6b6848',
    500: '#313102',
    950: '#000000',
  },
}
SCSS
$custom: #313102;
$custom-light: #6b6848;
$custom-dark: #000000;
JSON
{
  "hex": "#313102",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 2
  },
  "hsl": {
    "h": 60,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.30334,
    "c": 0.06411,
    "h": 109.7
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#313102
secondary
#191975
accent
#29FF29
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#070600
muted
#7A7A77

Preview Lab

Preview with #313102

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

Preview Lab → · Contrast checker → · Palette generator →

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