#476F18#476F18

#476F18 is a mid, vivid yellow-green. Relative luminance 0.128; OKLCH L 49.4% C 0.122 H 131.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#476F18
RGBrgb(71, 111, 24)
HSLhsl(88, 64%, 26%)
HSVhsv(88, 78%, 44%)
CMYKcmyk(36%, 0%, 78.4%, 56.5%)
CIE-LABlab(42.42, -28.68, 41.10)
CIE-LCHlch(42.42, 50.12, 124.90°)
OKLaboklab(49.4% -0.0812 0.0917)
OKLCHoklch(49.4% 0.122 131.5)
XYZxyz(8.4478, 12.7741, 2.8845)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476F18 #40186F
analogous
#6F6C18 #476F18 #1C6F18
triadic
#476F18 #18476F #6F1847
tetradic
#476F18 #186F6C #40186F #6F181C
square
#476F18 #186F6C #40186F #6F181C
split-complementary
#476F18 #181C6F #6C186F
monochromatic
#101905 #273D0D #476F18 #67A123 #87D22F

Accessibility & contrast

On white

5.91
#476F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#476F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #476F18
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##476F18#FFFFFF#000000##FFFFFF
##476F181.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746606
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#486A5E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #476f18;
/* rgb */ color: rgb(71, 111, 24);
/* oklch */ color: oklch(49.4% 0.122 131.5);
Tailwind
colors: {
  custom: {
    50: '#7e985c',
    500: '#476f18',
    950: '#000000',
  },
}
SCSS
$custom: #476f18;
$custom-light: #7e985c;
$custom-dark: #000000;
JSON
{
  "hex": "#476f18",
  "rgb": {
    "r": 71,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 87.586,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49398,
    "c": 0.12247,
    "h": 131.5
  },
  "luminance": 0.12774
}

Semantic roles & 50–950 ramp

primary
#476F18
secondary
#6D3EA5
accent
#40E78D
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #476F18

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

Preview Lab → · Contrast checker → · Palette generator →

#476F18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva