#38310C#38310C

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

Color values

HEX#38310C
RGBrgb(56, 49, 12)
HSLhsl(50, 65%, 13%)
HSVhsv(50, 79%, 22%)
CMYKcmyk(0%, 12.5%, 78.6%, 78%)
CIE-LABlab(20.30, -2.12, 23.67)
CIE-LCHlch(20.30, 23.77, 95.11°)
OKLaboklab(31.22% -0.0079 0.0537)
OKLCHoklch(31.22% 0.054 98.4)
XYZxyz(2.7957, 3.0641, 0.7919)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38310C #0C1338
analogous
#381B0C #38310C #29380C
triadic
#38310C #0C3831 #310C38
tetradic
#38310C #0C381B #0C1338 #380C29
square
#38310C #0C381B #0C1338 #380C29
split-complementary
#38310C #0C2938 #1B0C38
monochromatic
#191605 #191605 #38310C #6A5D17 #9D8922

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##38310C#FFFFFF#000000##FFFFFF
##38310C1.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)
#373007
Deuteranopia (green-blind)
#38320E
Tritanopia (blue-blind)
#3D2D29
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38310c;
/* rgb */ color: rgb(56, 49, 12);
/* oklch */ color: oklch(31.2% 0.054 98.4);
Tailwind
colors: {
  custom: {
    50: '#70684d',
    500: '#38310c',
    950: '#000000',
  },
}
SCSS
$custom: #38310c;
$custom-light: #70684d;
$custom-dark: #000000;
JSON
{
  "hex": "#38310c",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 50.455,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.31221,
    "c": 0.05424,
    "h": 98.4
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#38310C
secondary
#2C3774
accent
#5BE840
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#080601
muted
#7B7A77

Preview Lab

Preview with #38310C

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

Preview Lab → · Contrast checker → · Palette generator →

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