#38310F#38310F

#38310F is a dark, muted yellow. Relative luminance 0.031; OKLCH L 31.3% C 0.051 H 97.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#38310F
RGBrgb(56, 49, 15)
HSLhsl(50, 58%, 14%)
HSVhsv(50, 73%, 22%)
CMYKcmyk(0%, 12.5%, 73.2%, 78%)
CIE-LABlab(20.33, -1.89, 22.23)
CIE-LCHlch(20.33, 22.31, 94.85°)
OKLaboklab(31.26% -0.0068 0.0509)
OKLCHoklch(31.26% 0.051 97.7)
XYZxyz(2.8155, 3.0720, 0.8965)
Luminance0.0307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38310F #0F1638
analogous
#381D0F #38310F #2B380F
triadic
#38310F #0F3831 #310F38
tetradic
#38310F #0F381D #0F1638 #380F2B
square
#38310F #0F381D #0F1638 #380F2B
split-complementary
#38310F #0F2B38 #1D0F38
monochromatic
#181506 #181506 #38310F #685B1C #998529

Accessibility & contrast

On white

13.01
#38310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38310F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38310F#FFFFFF#000000##FFFFFF
##38310F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36300B
Deuteranopia (green-blind)
#383211
Tritanopia (blue-blind)
#3D2D2A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38310f;
/* rgb */ color: rgb(56, 49, 15);
/* oklch */ color: oklch(31.3% 0.051 97.7);
Tailwind
colors: {
  custom: {
    50: '#70684f',
    500: '#38310f',
    950: '#000000',
  },
}
SCSS
$custom: #38310f;
$custom-light: #70684f;
$custom-dark: #000000;
JSON
{
  "hex": "#38310f",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 49.756,
    "s": 57.746,
    "l": 13.922
  },
  "oklch": {
    "l": 0.31256,
    "c": 0.05134,
    "h": 97.7
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#38310F
secondary
#303C72
accent
#61E147
background
#F6F6F4
surface
#ECEBE7
border
#C7C6C3
text
#080602
muted
#7B7A78

Preview Lab

Preview with #38310F

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

Preview Lab → · Contrast checker → · Palette generator →

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