#31350A#31350A

#31350A is a dark, moderate yellow. Relative luminance 0.032; OKLCH L 31.5% C 0.062 H 114.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#31350A
RGBrgb(49, 53, 10)
HSLhsl(66, 68%, 12%)
HSVhsv(66, 81%, 21%)
CMYKcmyk(7.5%, 0%, 81.1%, 79.2%)
CIE-LABlab(20.91, -8.54, 25.00)
CIE-LCHlch(20.91, 26.42, 108.85°)
OKLaboklab(31.52% -0.0258 0.0564)
OKLCHoklch(31.52% 0.062 114.6)
XYZxyz(2.5946, 3.2211, 0.7722)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31350A #0E0A35
analogous
#35230A #31350A #1C350A
triadic
#31350A #0A3135 #350A31
tetradic
#31350A #0A3523 #0E0A35 #350A1C
square
#31350A #0A3523 #0E0A35 #350A1C
split-complementary
#31350A #0A1C35 #230A35
monochromatic
#181A05 #181A05 #31350A #616814 #909C1D

Accessibility & contrast

On white

12.77
#31350A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#31350A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31350A
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31350A#FFFFFF#000000##FFFFFF
##31350A1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393204
Deuteranopia (green-blind)
#39330D
Tritanopia (blue-blind)
#35312C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #31350a;
/* rgb */ color: rgb(49, 53, 10);
/* oklch */ color: oklch(31.5% 0.062 114.6);
Tailwind
colors: {
  custom: {
    50: '#6b6c4c',
    500: '#31350a',
    950: '#000000',
  },
}
SCSS
$custom: #31350a;
$custom-light: #6b6c4c;
$custom-dark: #000000;
JSON
{
  "hex": "#31350a",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 10
  },
  "hsl": {
    "h": 65.581,
    "s": 68.254,
    "l": 12.353
  },
  "oklch": {
    "l": 0.31524,
    "c": 0.06203,
    "h": 114.6
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#31350A
secondary
#2F2872
accent
#3DEB4D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070601
muted
#7A7A77

Preview Lab

Preview with #31350A

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

Preview Lab → · Contrast checker → · Palette generator →

#31350A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva