#38331F#38331F

#38331F is a dark, muted yellow. Relative luminance 0.033; OKLCH L 32.1% C 0.033 H 95.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#38331F
RGBrgb(56, 51, 31)
HSLhsl(48, 29%, 17%)
HSVhsv(48, 45%, 22%)
CMYKcmyk(0%, 8.9%, 44.6%, 78%)
CIE-LABlab(21.24, -1.40, 13.50)
CIE-LCHlch(21.24, 13.58, 95.91°)
OKLaboklab(32.05% -0.0034 0.0333)
OKLCHoklch(32.05% 0.033 95.8)
XYZxyz(3.0621, 3.3074, 1.7732)
Luminance0.0331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38331F #1F2438
analogous
#38271F #38331F #31381F
triadic
#38331F #1F3833 #331F38
tetradic
#38331F #1F3827 #1F2438 #381F31
square
#38331F #1F3827 #1F2438 #381F31
split-complementary
#38331F #1F3138 #271F38
monochromatic
#14120B #14120B #38331F #5F5735 #877B4B

Accessibility & contrast

On white

12.64
#38331F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#38331F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38331F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38331F#FFFFFF#000000##FFFFFF
##38331F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321E
Deuteranopia (green-blind)
#383420
Tritanopia (blue-blind)
#3C302E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38331f;
/* rgb */ color: rgb(56, 51, 31);
/* oklch */ color: oklch(32.1% 0.033 95.8);
Tailwind
colors: {
  custom: {
    50: '#6f6a5a',
    500: '#38331f',
    950: '#000000',
  },
}
SCSS
$custom: #38331f;
$custom-light: #6f6a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#38331f",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 31
  },
  "hsl": {
    "h": 48,
    "s": 28.736,
    "l": 17.059
  },
  "oklch": {
    "l": 0.32052,
    "c": 0.03344,
    "h": 95.8
  },
  "luminance": 0.03307
}

Semantic roles & 50–950 ramp

primary
#38331F
secondary
#474F6B
accent
#76C563
background
#F6F6F5
surface
#ECEBE9
border
#C7C6C5
text
#070604
muted
#7A7A79

Preview Lab

Preview with #38331F

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

Preview Lab → · Contrast checker → · Palette generator →

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