#476F12#476F12

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

Color values

HEX#476F12
RGBrgb(71, 111, 18)
HSLhsl(86, 72%, 25%)
HSVhsv(86, 84%, 44%)
CMYKcmyk(36%, 0%, 83.8%, 56.5%)
CIE-LABlab(42.39, -29.02, 43.14)
CIE-LCHlch(42.39, 51.99, 123.93°)
OKLaboklab(49.36% -0.0826 0.095)
OKLCHoklch(49.36% 0.126 131)
XYZxyz(8.3921, 12.7518, 2.5913)
Luminance0.1275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#476F12 #3A126F
analogous
#6F6812 #476F12 #196F12
triadic
#476F12 #12476F #6F1247
tetradic
#476F12 #126F68 #3A126F #6F1219
square
#476F12 #126F68 #3A126F #6F1219
split-complementary
#476F12 #12196F #68126F
monochromatic
#111A04 #253A09 #476F12 #69A41B #8AD823

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##476F12#FFFFFF#000000##FFFFFF
##476F121.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)
#746600
Deuteranopia (green-blind)
#6F631C
Tritanopia (blue-blind)
#496A5E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #476f12;
/* rgb */ color: rgb(71, 111, 18);
/* oklch */ color: oklch(49.4% 0.126 131.0);
Tailwind
colors: {
  custom: {
    50: '#7e9859',
    500: '#476f12',
    950: '#000000',
  },
}
SCSS
$custom: #476f12;
$custom-light: #7e9859;
$custom-dark: #000000;
JSON
{
  "hex": "#476f12",
  "rgb": {
    "r": 71,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 85.806,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.4936,
    "c": 0.12583,
    "h": 131
  },
  "luminance": 0.12752
}

Semantic roles & 50–950 ramp

primary
#476F12
secondary
#6737A6
accent
#39EF87
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #476F12

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

Preview Lab → · Contrast checker → · Palette generator →

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