#5A931F#5A931F

#5A931F is a mid, vivid yellow-green. Relative luminance 0.231; OKLCH L 60.1% C 0.155 H 132.8°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5A931F
RGBrgb(90, 147, 31)
HSLhsl(89, 65%, 35%)
HSVhsv(89, 79%, 58%)
CMYKcmyk(38.8%, 0%, 78.9%, 42.4%)
CIE-LABlab(55.22, -37.38, 51.27)
CIE-LCHlch(55.22, 63.45, 126.09°)
OKLaboklab(60.14% -0.1054 0.1138)
OKLCHoklch(60.14% 0.155 132.8)
XYZxyz(14.8973, 23.1393, 4.9775)
Luminance0.2314 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A931F #581F93
analogous
#93921F #5A931F #20931F
triadic
#5A931F #1F5A93 #931F5A
tetradic
#5A931F #1F9392 #581F93 #931F20
square
#5A931F #1F9392 #581F93 #931F20
split-complementary
#5A931F #1F2093 #921F93
monochromatic
#1C2E0A #3B6014 #5A931F #79C62A #97DA52

Accessibility & contrast

On white

3.73
#5A931F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5A931F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A931F
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A931F#FFFFFF#000000##000000
##5A931F1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#5B8D7D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5a931f;
/* rgb */ color: rgb(90, 147, 31);
/* oklch */ color: oklch(60.1% 0.155 132.8);
Tailwind
colors: {
  custom: {
    50: '#8eb365',
    500: '#5a931f',
    950: '#000000',
  },
}
SCSS
$custom: #5a931f;
$custom-light: #8eb365;
$custom-dark: #000000;
JSON
{
  "hex": "#5a931f",
  "rgb": {
    "r": 90,
    "g": 147,
    "b": 31
  },
  "hsl": {
    "h": 89.483,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.6014,
    "c": 0.15511,
    "h": 132.8
  },
  "luminance": 0.2314
}

Semantic roles & 50–950 ramp

primary
#5A931F
secondary
#8650BE
accent
#40E892
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A931F

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

Preview Lab → · Contrast checker → · Palette generator →

#5A931F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva