#403E12#403E12

#403E12 is a dark, moderate yellow. Relative luminance 0.046; OKLCH L 35.6% C 0.063 H 106.7°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#403E12
RGBrgb(64, 62, 18)
HSLhsl(57, 56%, 16%)
HSVhsv(57, 72%, 25%)
CMYKcmyk(0%, 3.1%, 71.9%, 74.9%)
CIE-LABlab(25.50, -5.74, 26.46)
CIE-LCHlch(25.50, 27.07, 102.25°)
OKLaboklab(35.58% -0.018 0.0601)
OKLCHoklch(35.58% 0.063 106.7)
XYZxyz(3.9463, 4.5790, 1.2481)
Luminance0.0458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E12 #121440
analogous
#402712 #403E12 #2B4012
triadic
#403E12 #12403E #3E1240
tetradic
#403E12 #124027 #121440 #40122B
square
#403E12 #124027 #121440 #40122B
split-complementary
#403E12 #122B40 #271240
monochromatic
#181707 #181707 #403E12 #706C1F #A09B2D

Accessibility & contrast

On white

10.96
#403E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#403E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E12
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E12#FFFFFF#000000##FFFFFF
##403E121.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B0C
Deuteranopia (green-blind)
#453D15
Tritanopia (blue-blind)
#453A35
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403e12;
/* rgb */ color: rgb(64, 62, 18);
/* oklch */ color: oklch(35.6% 0.063 106.7);
Tailwind
colors: {
  custom: {
    50: '#777352',
    500: '#403e12',
    950: '#000000',
  },
}
SCSS
$custom: #403e12;
$custom-light: #777352;
$custom-dark: #000000;
JSON
{
  "hex": "#403e12",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 18
  },
  "hsl": {
    "h": 57.391,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.35578,
    "c": 0.06271,
    "h": 106.7
  },
  "luminance": 0.04579
}

Semantic roles & 50–950 ramp

primary
#403E12
secondary
#353879
accent
#4FDF48
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403E12

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

Preview Lab → · Contrast checker → · Palette generator →

#403E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva