#8FA228#8FA228

#8FA228 is a light, vivid yellow. Relative luminance 0.318; OKLCH L 67.5% C 0.143 H 118.3°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8FA228
RGBrgb(143, 162, 40)
HSLhsl(69, 60%, 40%)
HSVhsv(69, 75%, 64%)
CMYKcmyk(11.7%, 0%, 75.3%, 36.5%)
CIE-LABlab(63.21, -22.62, 57.00)
CIE-LCHlch(63.21, 61.33, 111.65°)
OKLaboklab(67.51% -0.0677 0.1259)
OKLCHoklch(67.51% 0.143 118.3)
XYZxyz(24.6316, 31.8337, 6.8540)
Luminance0.3183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FA228 #3B28A2
analogous
#A27828 #8FA228 #52A228
triadic
#8FA228 #288FA2 #A2288F
tetradic
#8FA228 #28A278 #3B28A2 #A22852
square
#8FA228 #28A278 #3B28A2 #A22852
split-complementary
#8FA228 #2852A2 #7828A2
monochromatic
#384010 #64711C #8FA228 #B7CE39 #C9DA6A

Accessibility & contrast

On white

2.85
#8FA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#8FA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FA228
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FA228#FFFFFF#000000##000000
##8FA2281.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD990D
Deuteranopia (green-blind)
#AB9A33
Tritanopia (blue-blind)
#98998B
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #8fa228;
/* rgb */ color: rgb(143, 162, 40);
/* oklch */ color: oklch(67.5% 0.143 118.3);
Tailwind
colors: {
  custom: {
    50: '#b3bd6c',
    500: '#8fa228',
    950: '#000000',
  },
}
SCSS
$custom: #8fa228;
$custom-light: #b3bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#8fa228",
  "rgb": {
    "r": 143,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 69.344,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.67507,
    "c": 0.14296,
    "h": 118.3
  },
  "luminance": 0.31834
}

Semantic roles & 50–950 ramp

primary
#8FA228
secondary
#7365C1
accent
#44E45D
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111207
muted
#80817A

Preview Lab

Preview with #8FA228

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

Preview Lab → · Contrast checker → · Palette generator →

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