#476817#476817

#476817 is a mid, moderate yellow-green. Relative luminance 0.113; OKLCH L 47.5% C 0.114 H 129.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#476817
RGBrgb(71, 104, 23)
HSLhsl(84, 64%, 25%)
HSVhsv(84, 78%, 41%)
CMYKcmyk(31.7%, 0%, 77.9%, 59.2%)
CIE-LABlab(40.08, -25.36, 39.21)
CIE-LCHlch(40.08, 46.70, 122.90°)
OKLaboklab(47.49% -0.0723 0.0876)
OKLCHoklch(47.49% 0.114 129.5)
XYZxyz(7.7035, 11.3019, 2.5860)
Luminance0.1130 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476817 #381768
analogous
#686017 #476817 #1F6817
triadic
#476817 #174768 #681747
tetradic
#476817 #176860 #381768 #68171F
square
#476817 #176860 #381768 #68171F
split-complementary
#476817 #171F68 #601768
monochromatic
#111906 #25360C #476817 #699A22 #8BCC2D

Accessibility & contrast

On white

6.44
#476817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#476817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #476817
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476817#FFFFFF#000000##FFFFFF
##4768171.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6007
Deuteranopia (green-blind)
#695E1F
Tritanopia (blue-blind)
#496358
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #476817;
/* rgb */ color: rgb(71, 104, 23);
/* oklch */ color: oklch(47.5% 0.114 129.5);
Tailwind
colors: {
  custom: {
    50: '#7d935b',
    500: '#476817',
    950: '#000000',
  },
}
SCSS
$custom: #476817;
$custom-light: #7d935b;
$custom-dark: #000000;
JSON
{
  "hex": "#476817",
  "rgb": {
    "r": 71,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 84.444,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47492,
    "c": 0.11353,
    "h": 129.5
  },
  "luminance": 0.11302
}

Semantic roles & 50–950 ramp

primary
#476817
secondary
#643D9E
accent
#41E785
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #476817

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

Preview Lab → · Contrast checker → · Palette generator →

#476817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva