#40631A#40631A

#40631A is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 45.7% C 0.108 H 131.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#40631A
RGBrgb(64, 99, 26)
HSLhsl(89, 58%, 25%)
HSVhsv(89, 74%, 39%)
CMYKcmyk(35.4%, 0%, 73.7%, 61.2%)
CIE-LABlab(38.00, -25.57, 35.75)
CIE-LCHlch(38.00, 43.95, 125.58°)
OKLaboklab(45.69% -0.0721 0.0809)
OKLCHoklch(45.69% 0.108 131.7)
XYZxyz(6.7626, 10.0880, 2.5680)
Luminance0.1009 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40631A #3D1A63
analogous
#63621A #40631A #1C631A
triadic
#40631A #1A4063 #631A40
tetradic
#40631A #1A6362 #3D1A63 #631A1C
square
#40631A #1A6362 #3D1A63 #631A1C
split-complementary
#40631A #1A1C63 #621A63
monochromatic
#101806 #21330D #40631A #5F9327 #7FC433

Accessibility & contrast

On white

6.96
#40631A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#40631A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40631A
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40631A#FFFFFF#000000##FFFFFF
##40631A1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675B0F
Deuteranopia (green-blind)
#635920
Tritanopia (blue-blind)
#415F54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #40631a;
/* rgb */ color: rgb(64, 99, 26);
/* oklch */ color: oklch(45.7% 0.108 131.7);
Tailwind
colors: {
  custom: {
    50: '#788f5b',
    500: '#40631a',
    950: '#000000',
  },
}
SCSS
$custom: #40631a;
$custom-light: #788f5b;
$custom-dark: #000000;
JSON
{
  "hex": "#40631a",
  "rgb": {
    "r": 64,
    "g": 99,
    "b": 26
  },
  "hsl": {
    "h": 88.767,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.45688,
    "c": 0.1084,
    "h": 131.7
  },
  "luminance": 0.10088
}

Semantic roles & 50–950 ramp

primary
#40631A
secondary
#6B4099
accent
#46E291
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #40631A

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

Preview Lab → · Contrast checker → · Palette generator →

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