#31360C#31360C

#31360C is a dark, moderate yellow. Relative luminance 0.033; OKLCH L 31.8% C 0.062 H 115.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#31360C
RGBrgb(49, 54, 12)
HSLhsl(67, 64%, 13%)
HSVhsv(67, 78%, 21%)
CMYKcmyk(9.3%, 0%, 77.8%, 78.8%)
CIE-LABlab(21.27, -9.01, 24.54)
CIE-LCHlch(21.27, 26.15, 110.16°)
OKLaboklab(31.82% -0.0269 0.0555)
OKLCHoklch(31.82% 0.062 115.8)
XYZxyz(2.6522, 3.3179, 0.8485)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31360C #110C36
analogous
#36260C #31360C #1C360C
triadic
#31360C #0C3136 #360C31
tetradic
#31360C #0C3626 #110C36 #360C1C
square
#31360C #0C3626 #110C36 #360C1C
split-complementary
#31360C #0C1C36 #260C36
monochromatic
#171906 #171906 #31360C #5E6817 #8C9A22

Accessibility & contrast

On white

12.62
#31360C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#31360C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31360C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31360C#FFFFFF#000000##FFFFFF
##31360C1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3307
Deuteranopia (green-blind)
#3A330F
Tritanopia (blue-blind)
#35322D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #31360c;
/* rgb */ color: rgb(49, 54, 12);
/* oklch */ color: oklch(31.8% 0.062 115.8);
Tailwind
colors: {
  custom: {
    50: '#6b6c4d',
    500: '#31360c',
    950: '#000000',
  },
}
SCSS
$custom: #31360c;
$custom-light: #6b6c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#31360c",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 12
  },
  "hsl": {
    "h": 67.143,
    "s": 63.636,
    "l": 12.941
  },
  "oklch": {
    "l": 0.31823,
    "c": 0.0617,
    "h": 115.8
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#31360C
secondary
#342C72
accent
#41E755
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #31360C

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

Preview Lab → · Contrast checker → · Palette generator →

#31360C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva