#40682A#40682A

#40682A is a mid, moderate yellow-green. Relative luminance 0.112; OKLCH L 47.2% C 0.102 H 135.8°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#40682A
RGBrgb(64, 104, 42)
HSLhsl(99, 42%, 29%)
HSVhsv(99, 60%, 41%)
CMYKcmyk(38.5%, 0%, 59.6%, 59.2%)
CIE-LABlab(39.84, -26.42, 30.08)
CIE-LCHlch(39.84, 40.03, 131.29°)
OKLaboklab(47.24% -0.073 0.0709)
OKLCHoklch(47.24% 0.102 135.8)
XYZxyz(7.4824, 11.1574, 3.9494)
Luminance0.1116 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40682A #522A68
analogous
#5F682A #40682A #2A6833
triadic
#40682A #2A4068 #682A40
tetradic
#40682A #2A5F68 #522A68 #68332A
square
#40682A #2A5F68 #522A68 #68332A
split-complementary
#40682A #332A68 #682A5F
monochromatic
#0D1609 #253C18 #40682A #5B943C #77B953

Accessibility & contrast

On white

6.50
#40682A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#40682A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40682A
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40682A#FFFFFF#000000##FFFFFF
##40682A1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C6024
Deuteranopia (green-blind)
#665D2E
Tritanopia (blue-blind)
#3F645A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #40682a;
/* rgb */ color: rgb(64, 104, 42);
/* oklch */ color: oklch(47.2% 0.102 135.8);
Tailwind
colors: {
  custom: {
    50: '#789366',
    500: '#40682a',
    950: '#000000',
  },
}
SCSS
$custom: #40682a;
$custom-light: #789366;
$custom-dark: #000000;
JSON
{
  "hex": "#40682a",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 42
  },
  "hsl": {
    "h": 98.71,
    "s": 42.466,
    "l": 28.627
  },
  "oklch": {
    "l": 0.47243,
    "c": 0.10181,
    "h": 135.8
  },
  "luminance": 0.11158
}

Semantic roles & 50–950 ramp

primary
#40682A
secondary
#81549A
accent
#56D2A6
background
#F7F9F6
surface
#EDF1EB
border
#C8CBC6
text
#090D06
muted
#7B7E7A

Preview Lab

Preview with #40682A

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

Preview Lab → · Contrast checker → · Palette generator →

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