#8FA021#8FA021

#8FA021 is a light, vivid yellow. Relative luminance 0.311; OKLCH L 67.0% C 0.144 H 117.4°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8FA021
RGBrgb(143, 160, 33)
HSLhsl(68, 66%, 38%)
HSVhsv(68, 79%, 63%)
CMYKcmyk(10.6%, 0%, 79.4%, 37.3%)
CIE-LABlab(62.58, -21.94, 58.69)
CIE-LCHlch(62.58, 62.65, 110.50°)
OKLaboklab(67% -0.0664 0.1282)
OKLCHoklch(67% 0.144 117.4)
XYZxyz(24.1736, 31.0913, 6.1663)
Luminance0.3109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FA021 #3221A0
analogous
#A07121 #8FA021 #50A021
triadic
#8FA021 #218FA0 #A0218F
tetradic
#8FA021 #21A071 #3221A0 #A02150
square
#8FA021 #21A071 #3221A0 #A02150
split-complementary
#8FA021 #2150A0 #7121A0
monochromatic
#343B0C #626D17 #8FA021 #BCD32B #CDDE5E

Accessibility & contrast

On white

2.91
#8FA021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#8FA021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FA021
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FA021#FFFFFF#000000##000000
##8FA0211.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9700
Deuteranopia (green-blind)
#AA982D
Tritanopia (blue-blind)
#989789
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #8fa021;
/* rgb */ color: rgb(143, 160, 33);
/* oklch */ color: oklch(67.0% 0.144 117.4);
Tailwind
colors: {
  custom: {
    50: '#b3bc68',
    500: '#8fa021',
    950: '#000000',
  },
}
SCSS
$custom: #8fa021;
$custom-light: #b3bc68;
$custom-dark: #000000;
JSON
{
  "hex": "#8fa021",
  "rgb": {
    "r": 143,
    "g": 160,
    "b": 33
  },
  "hsl": {
    "h": 68.031,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.66996,
    "c": 0.14441,
    "h": 117.4
  },
  "luminance": 0.31091
}

Semantic roles & 50–950 ramp

primary
#8FA021
secondary
#685BC2
accent
#3FE956
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8FA021

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

Preview Lab → · Contrast checker → · Palette generator →

#8FA021 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva