#38310B#38310B

#38310B is a dark, muted yellow. Relative luminance 0.031; OKLCH L 31.2% C 0.055 H 98.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#38310B
RGBrgb(56, 49, 11)
HSLhsl(51, 67%, 13%)
HSVhsv(51, 80%, 22%)
CMYKcmyk(0%, 12.5%, 80.4%, 78%)
CIE-LABlab(20.29, -2.19, 24.10)
CIE-LCHlch(20.29, 24.20, 95.18°)
OKLaboklab(31.21% -0.0083 0.0545)
OKLCHoklch(31.21% 0.055 98.6)
XYZxyz(2.7897, 3.0617, 0.7606)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38310B #0B1238
analogous
#381A0B #38310B #28380B
triadic
#38310B #0B3831 #310B38
tetradic
#38310B #0B381A #0B1238 #380B28
square
#38310B #0B381A #0B1238 #380B28
split-complementary
#38310B #0B2838 #1A0B38
monochromatic
#1A1605 #1A1605 #38310B #6B5E15 #9E8B1F

Accessibility & contrast

On white

13.02
#38310B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#38310B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38310B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38310B#FFFFFF#000000##FFFFFF
##38310B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373006
Deuteranopia (green-blind)
#38320D
Tritanopia (blue-blind)
#3D2D29
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38310b;
/* rgb */ color: rgb(56, 49, 11);
/* oklch */ color: oklch(31.2% 0.055 98.6);
Tailwind
colors: {
  custom: {
    50: '#70684d',
    500: '#38310b',
    950: '#000000',
  },
}
SCSS
$custom: #38310b;
$custom-light: #70684d;
$custom-dark: #000000;
JSON
{
  "hex": "#38310b",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 11
  },
  "hsl": {
    "h": 50.667,
    "s": 67.164,
    "l": 13.137
  },
  "oklch": {
    "l": 0.3121,
    "c": 0.05513,
    "h": 98.6
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#38310B
secondary
#2A3675
accent
#59EA3E
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#080601
muted
#7B7A77

Preview Lab

Preview with #38310B

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

Preview Lab → · Contrast checker → · Palette generator →

#38310B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva