#427A1F#427A1F

#427A1F is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.2% C 0.136 H 136.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#427A1F
RGBrgb(66, 122, 31)
HSLhsl(97, 59%, 30%)
HSVhsv(97, 75%, 48%)
CMYKcmyk(45.9%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.87, -35.04, 41.74)
CIE-LCHlch(45.87, 54.50, 130.01°)
OKLaboklab(52.17% -0.0975 0.0942)
OKLCHoklch(52.17% 0.136 136)
XYZxyz(9.4534, 15.1757, 3.7271)
Luminance0.1518 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#427A1F #571F7A
analogous
#707A1F #427A1F #1F7A29
triadic
#427A1F #1F427A #7A1F42
tetradic
#427A1F #1F707A #571F7A #7A291F
square
#427A1F #1F707A #571F7A #7A291F
split-complementary
#427A1F #291F7A #7A1F70
monochromatic
#0D1806 #284913 #427A1F #5CAB2B #7ACF44

Accessibility & contrast

On white

5.20
#427A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#427A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #427A1F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##427A1F#FFFFFF#000000##FFFFFF
##427A1F1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E700F
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#407568
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #427a1f;
/* rgb */ color: rgb(66, 122, 31);
/* oklch */ color: oklch(52.2% 0.136 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ca161',
    500: '#427a1f',
    950: '#000000',
  },
}
SCSS
$custom: #427a1f;
$custom-light: #7ca161;
$custom-dark: #000000;
JSON
{
  "hex": "#427a1f",
  "rgb": {
    "r": 66,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 96.923,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52168,
    "c": 0.13559,
    "h": 136
  },
  "luminance": 0.15176
}

Semantic roles & 50–950 ramp

primary
#427A1F
secondary
#8647AD
accent
#45E3A6
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #427A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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