#38310A#38310A

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

Color values

HEX#38310A
RGBrgb(56, 49, 10)
HSLhsl(51, 70%, 13%)
HSVhsv(51, 82%, 22%)
CMYKcmyk(0%, 12.5%, 82.1%, 78%)
CIE-LABlab(20.28, -2.25, 24.51)
CIE-LCHlch(20.28, 24.61, 95.25°)
OKLaboklab(31.2% -0.0086 0.0553)
OKLCHoklch(31.2% 0.056 98.8)
XYZxyz(2.7841, 3.0594, 0.7310)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38310A #0A1138
analogous
#381A0A #38310A #28380A
triadic
#38310A #0A3831 #310A38
tetradic
#38310A #0A381A #0A1138 #380A28
square
#38310A #0A381A #0A1138 #380A28
split-complementary
#38310A #0A2838 #1A0A38
monochromatic
#1A1705 #1A1705 #38310A #6C5E13 #A08C1D

Accessibility & contrast

On white

13.03
#38310A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38310A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38310A#FFFFFF#000000##FFFFFF
##38310A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#372F05
Deuteranopia (green-blind)
#39320C
Tritanopia (blue-blind)
#3D2D29
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38310a;
/* rgb */ color: rgb(56, 49, 10);
/* oklch */ color: oklch(31.2% 0.056 98.8);
Tailwind
colors: {
  custom: {
    50: '#71684c',
    500: '#38310a',
    950: '#000000',
  },
}
SCSS
$custom: #38310a;
$custom-light: #71684c;
$custom-dark: #000000;
JSON
{
  "hex": "#38310a",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 10
  },
  "hsl": {
    "h": 50.87,
    "s": 69.697,
    "l": 12.941
  },
  "oklch": {
    "l": 0.312,
    "c": 0.05598,
    "h": 98.8
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#38310A
secondary
#283475
accent
#56ED3B
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#080601
muted
#7B7A77

Preview Lab

Preview with #38310A

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

Preview Lab → · Contrast checker → · Palette generator →

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