#38331A#38331A

#38331A is a dark, muted yellow. Relative luminance 0.033; OKLCH L 31.9% C 0.040 H 98.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#38331A
RGBrgb(56, 51, 26)
HSLhsl(50, 37%, 16%)
HSVhsv(50, 54%, 22%)
CMYKcmyk(0%, 8.9%, 53.6%, 78%)
CIE-LABlab(21.14, -2.07, 16.61)
CIE-LCHlch(21.14, 16.73, 97.09°)
OKLaboklab(31.95% -0.0058 0.04)
OKLCHoklch(31.95% 0.04 98.3)
XYZxyz(3.0012, 3.2831, 1.4527)
Luminance0.0328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38331A #1A1F38
analogous
#38241A #38331A #2E381A
triadic
#38331A #1A3833 #331A38
tetradic
#38331A #1A3824 #1A1F38 #381A2E
square
#38331A #1A3824 #1A1F38 #381A2E
split-complementary
#38331A #1A2E38 #241A38
monochromatic
#15130A #15130A #38331A #62592D #8C7F41

Accessibility & contrast

On white

12.68
#38331A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38331A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38331A#FFFFFF#000000##FFFFFF
##38331A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373218
Deuteranopia (green-blind)
#39341B
Tritanopia (blue-blind)
#3C302D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38331a;
/* rgb */ color: rgb(56, 51, 26);
/* oklch */ color: oklch(31.9% 0.040 98.3);
Tailwind
colors: {
  custom: {
    50: '#6f6a57',
    500: '#38331a',
    950: '#000000',
  },
}
SCSS
$custom: #38331a;
$custom-light: #6f6a57;
$custom-dark: #000000;
JSON
{
  "hex": "#38331a",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 26
  },
  "hsl": {
    "h": 50,
    "s": 36.585,
    "l": 16.078
  },
  "oklch": {
    "l": 0.3195,
    "c": 0.04042,
    "h": 98.3
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#38331A
secondary
#41486D
accent
#6ECD5B
background
#F6F6F5
surface
#ECEBE9
border
#C7C6C5
text
#070603
muted
#7A7A78

Preview Lab

Preview with #38331A

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

Preview Lab → · Contrast checker → · Palette generator →

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