#40381A#40381A

#40381A is a dark, muted yellow. Relative luminance 0.040; OKLCH L 34.1% C 0.047 H 94.8°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#40381A
RGBrgb(64, 56, 26)
HSLhsl(47, 42%, 18%)
HSVhsv(47, 59%, 25%)
CMYKcmyk(0%, 12.5%, 59.4%, 74.9%)
CIE-LABlab(23.65, -1.21, 19.87)
CIE-LCHlch(23.65, 19.90, 93.49°)
OKLaboklab(34.14% -0.0039 0.0471)
OKLCHoklch(34.14% 0.047 94.8)
XYZxyz(3.7151, 3.9931, 1.5521)
Luminance0.0399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40381A #1A2240
analogous
#40251A #40381A #35401A
triadic
#40381A #1A4038 #381A40
tetradic
#40381A #1A4025 #1A2240 #401A35
square
#40381A #1A4025 #1A2240 #401A35
split-complementary
#40381A #1A3540 #251A40
monochromatic
#161309 #161309 #40381A #6C5E2C #97843D

Accessibility & contrast

On white

11.68
#40381A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#40381A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40381A
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40381A#FFFFFF#000000##FFFFFF
##40381A1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3717
Deuteranopia (green-blind)
#40391B
Tritanopia (blue-blind)
#453431
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40381a;
/* rgb */ color: rgb(64, 56, 26);
/* oklch */ color: oklch(34.1% 0.047 94.8);
Tailwind
colors: {
  custom: {
    50: '#766e57',
    500: '#40381a',
    950: '#000000',
  },
}
SCSS
$custom: #40381a;
$custom-light: #766e57;
$custom-dark: #000000;
JSON
{
  "hex": "#40381a",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 26
  },
  "hsl": {
    "h": 47.368,
    "s": 42.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.3414,
    "c": 0.04724,
    "h": 94.8
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#40381A
secondary
#404B76
accent
#70D256
background
#F7F6F5
surface
#EDEBE9
border
#C8C6C5
text
#080703
muted
#7B7A78

Preview Lab

Preview with #40381A

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

Preview Lab → · Contrast checker → · Palette generator →

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