#40681F#40681F

#40681F is a mid, moderate yellow-green. Relative luminance 0.111; OKLCH L 47.1% C 0.112 H 133.6°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#40681F
RGBrgb(64, 104, 31)
HSLhsl(93, 54%, 26%)
HSVhsv(93, 70%, 41%)
CMYKcmyk(38.5%, 0%, 70.2%, 59.2%)
CIE-LABlab(39.73, -27.57, 35.34)
CIE-LCHlch(39.73, 44.82, 127.96°)
OKLaboklab(47.11% -0.0771 0.0808)
OKLCHoklch(47.11% 0.112 133.6)
XYZxyz(7.3119, 11.0892, 3.0512)
Luminance0.1109 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40681F #471F68
analogous
#65681F #40681F #1F6823
triadic
#40681F #1F4068 #681F40
tetradic
#40681F #1F6568 #471F68 #68231F
square
#40681F #1F6568 #471F68 #68231F
split-complementary
#40681F #231F68 #681F65
monochromatic
#0F1807 #233911 #40681F #5D972D #7AC53C

Accessibility & contrast

On white

6.53
#40681F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#40681F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40681F
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40681F#FFFFFF#000000##FFFFFF
##40681F1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C6015
Deuteranopia (green-blind)
#675C25
Tritanopia (blue-blind)
#406459
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #40681f;
/* rgb */ color: rgb(64, 104, 31);
/* oklch */ color: oklch(47.1% 0.112 133.6);
Tailwind
colors: {
  custom: {
    50: '#78935f',
    500: '#40681f',
    950: '#000000',
  },
}
SCSS
$custom: #40681f;
$custom-light: #78935f;
$custom-dark: #000000;
JSON
{
  "hex": "#40681f",
  "rgb": {
    "r": 64,
    "g": 104,
    "b": 31
  },
  "hsl": {
    "h": 92.877,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.47113,
    "c": 0.1117,
    "h": 133.6
  },
  "luminance": 0.1109
}

Semantic roles & 50–950 ramp

primary
#40681F
secondary
#76469C
accent
#4ADD9B
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #40681F

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

Preview Lab → · Contrast checker → · Palette generator →

#40681F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva