#56B31F#56B31F

#56B31F is a light, vivid yellow-green. Relative luminance 0.343; OKLCH L 68.3% C 0.196 H 137.2°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#56B31F
RGBrgb(86, 179, 31)
HSLhsl(98, 70%, 41%)
HSVhsv(98, 83%, 70%)
CMYKcmyk(52%, 0%, 82.7%, 29.8%)
CIE-LABlab(65.21, -51.65, 60.46)
CIE-LCHlch(65.21, 79.52, 130.51°)
OKLaboklab(68.3% -0.1435 0.1331)
OKLCHoklch(68.3% 0.196 137.2)
XYZxyz(20.2045, 34.3161, 6.8550)
Luminance0.3432 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56B31F #7C1FB3
analogous
#A0B31F #56B31F #1FB332
triadic
#56B31F #1F56B3 #B31F56
tetradic
#56B31F #1FA0B3 #7C1FB3 #B3321F
square
#56B31F #1FA0B3 #7C1FB3 #B3321F
split-complementary
#56B31F #321FB3 #B31FA0
monochromatic
#244B0D #3D7F16 #56B31F #72DC33 #96E568

Accessibility & contrast

On white

2.67
#56B31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#56B31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #56B31F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56B31F#FFFFFF#000000##000000
##56B31F1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#AD9B32
Tritanopia (blue-blind)
#50AC98
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #56b31f;
/* rgb */ color: rgb(86, 179, 31);
/* oklch */ color: oklch(68.3% 0.196 137.2);
Tailwind
colors: {
  custom: {
    50: '#8fca69',
    500: '#56b31f',
    950: '#000000',
  },
}
SCSS
$custom: #56b31f;
$custom-light: #8fca69;
$custom-dark: #000000;
JSON
{
  "hex": "#56b31f",
  "rgb": {
    "r": 86,
    "g": 179,
    "b": 31
  },
  "hsl": {
    "h": 97.703,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.68302,
    "c": 0.19575,
    "h": 137.2
  },
  "luminance": 0.34318
}

Semantic roles & 50–950 ramp

primary
#56B31F
secondary
#A464CA
accent
#3BEDAB
background
#F9FCF6
surface
#F2F8EC
border
#CCD1C7
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #56B31F

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

Preview Lab → · Contrast checker → · Palette generator →

#56B31F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva