#427F1F#427F1F

#427F1F is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.5% C 0.142 H 136.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#427F1F
RGBrgb(66, 127, 31)
HSLhsl(98, 61%, 31%)
HSVhsv(98, 76%, 50%)
CMYKcmyk(48%, 0%, 75.6%, 50.2%)
CIE-LABlab(47.54, -37.19, 43.42)
CIE-LCHlch(47.54, 57.16, 130.58°)
OKLaboklab(53.54% -0.1033 0.0977)
OKLCHoklch(53.54% 0.142 136.6)
XYZxyz(10.0832, 16.4353, 3.9371)
Luminance0.1644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#427F1F #5C1F7F
analogous
#727F1F #427F1F #1F7F2C
triadic
#427F1F #1F427F #7F1F42
tetradic
#427F1F #1F727F #5C1F7F #7F2C1F
square
#427F1F #1F727F #5C1F7F #7F2C1F
split-complementary
#427F1F #2C1F7F #7F1F72
monochromatic
#0F1D07 #284E13 #427F1F #5CB02B #79D246

Accessibility & contrast

On white

4.90
#427F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#427F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #427F1F
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##427F1F#FFFFFF#000000##FFFFFF
##427F1F1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740D
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#3F7A6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #427f1f;
/* rgb */ color: rgb(66, 127, 31);
/* oklch */ color: oklch(53.5% 0.142 136.6);
Tailwind
colors: {
  custom: {
    50: '#7ca562',
    500: '#427f1f',
    950: '#000000',
  },
}
SCSS
$custom: #427f1f;
$custom-light: #7ca562;
$custom-dark: #000000;
JSON
{
  "hex": "#427f1f",
  "rgb": {
    "r": 66,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 98.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53536,
    "c": 0.14222,
    "h": 136.6
  },
  "luminance": 0.16436
}

Semantic roles & 50–950 ramp

primary
#427F1F
secondary
#8B48B2
accent
#44E4AA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #427F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#427F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva