#38310D#38310D

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

Color values

HEX#38310D
RGBrgb(56, 49, 13)
HSLhsl(50, 62%, 14%)
HSVhsv(50, 77%, 22%)
CMYKcmyk(0%, 12.5%, 76.8%, 78%)
CIE-LABlab(20.31, -2.04, 23.21)
CIE-LCHlch(20.31, 23.30, 95.03°)
OKLaboklab(31.23% -0.0076 0.0528)
OKLCHoklch(31.23% 0.053 98.2)
XYZxyz(2.8020, 3.0666, 0.8250)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38310D #0D1438
analogous
#381B0D #38310D #29380D
triadic
#38310D #0D3831 #310D38
tetradic
#38310D #0D381B #0D1438 #380D29
square
#38310D #0D381B #0D1438 #380D29
split-complementary
#38310D #0D2938 #1B0D38
monochromatic
#191606 #191606 #38310D #6A5C19 #9B8824

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##38310D#FFFFFF#000000##FFFFFF
##38310D1.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)
#363009
Deuteranopia (green-blind)
#38320F
Tritanopia (blue-blind)
#3D2D29
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38310d;
/* rgb */ color: rgb(56, 49, 13);
/* oklch */ color: oklch(31.2% 0.053 98.2);
Tailwind
colors: {
  custom: {
    50: '#70684e',
    500: '#38310d',
    950: '#000000',
  },
}
SCSS
$custom: #38310d;
$custom-light: #70684e;
$custom-dark: #000000;
JSON
{
  "hex": "#38310d",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 13
  },
  "hsl": {
    "h": 50.233,
    "s": 62.319,
    "l": 13.529
  },
  "oklch": {
    "l": 0.31232,
    "c": 0.0533,
    "h": 98.2
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#38310D
secondary
#2D3973
accent
#5DE542
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#080601
muted
#7B7A77

Preview Lab

Preview with #38310D

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

Preview Lab → · Contrast checker → · Palette generator →

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