#40841C#40841C

#40841C is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.8% C 0.151 H 137.3°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#40841C
RGBrgb(64, 132, 28)
HSLhsl(99, 65%, 31%)
HSVhsv(99, 79%, 52%)
CMYKcmyk(51.5%, 0%, 78.8%, 48.2%)
CIE-LABlab(49.10, -40.12, 46.02)
CIE-LCHlch(49.10, 61.05, 131.08°)
OKLaboklab(54.79% -0.1113 0.1027)
OKLCHoklch(54.79% 0.151 137.3)
XYZxyz(10.5749, 17.6756, 3.9529)
Luminance0.1768 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40841C #601C84
analogous
#74841C #40841C #1C842C
triadic
#40841C #1C4084 #841C40
tetradic
#40841C #1C7484 #601C84 #842C1C
square
#40841C #1C7484 #601C84 #842C1C
split-complementary
#40841C #2C1C84 #841C74
monochromatic
#0F1F07 #285211 #40841C #58B627 #76D743

Accessibility & contrast

On white

4.63
#40841C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#40841C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #40841C
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40841C#FFFFFF#000000##FFFFFF
##40841C1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897803
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#3C7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #40841c;
/* rgb */ color: rgb(64, 132, 28);
/* oklch */ color: oklch(54.8% 0.151 137.3);
Tailwind
colors: {
  custom: {
    50: '#7ca861',
    500: '#40841c',
    950: '#000000',
  },
}
SCSS
$custom: #40841c;
$custom-light: #7ca861;
$custom-dark: #000000;
JSON
{
  "hex": "#40841c",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 99.231,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54788,
    "c": 0.15146,
    "h": 137.3
  },
  "luminance": 0.17676
}

Semantic roles & 50–950 ramp

primary
#40841C
secondary
#9045B7
accent
#40E8AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40841C

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

Preview Lab → · Contrast checker → · Palette generator →

#40841C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva