#9FB228#9FB228

#9FB228 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 72.5% C 0.155 H 117.5°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#9FB228
RGBrgb(159, 178, 40)
HSLhsl(68, 63%, 43%)
HSVhsv(68, 78%, 70%)
CMYKcmyk(10.7%, 0%, 77.5%, 30.2%)
CIE-LABlab(69.02, -23.75, 62.83)
CIE-LCHlch(69.02, 67.17, 110.70°)
OKLaboklab(72.48% -0.0717 0.1377)
OKLCHoklch(72.48% 0.155 117.5)
XYZxyz(30.6022, 39.3653, 7.9932)
Luminance0.3936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB228 #3B28B2
analogous
#B28028 #9FB228 #5AB228
triadic
#9FB228 #289FB2 #B2289F
tetradic
#9FB228 #28B280 #3B28B2 #B2285A
square
#9FB228 #28B280 #3B28B2 #B2285A
split-complementary
#9FB228 #285AB2 #8028B2
monochromatic
#464E12 #72801D #9FB228 #C1D543 #D1E075

Accessibility & contrast

On white

2.37
#9FB228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#9FB228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB228
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB228#FFFFFF#000000##000000
##9FB2281.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BCA935
Tritanopia (blue-blind)
#A9A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9fb228;
/* rgb */ color: rgb(159, 178, 40);
/* oklch */ color: oklch(72.5% 0.155 117.5);
Tailwind
colors: {
  custom: {
    50: '#bfc96e',
    500: '#9fb228',
    950: '#000000',
  },
}
SCSS
$custom: #9fb228;
$custom-light: #bfc96e;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb228",
  "rgb": {
    "r": 159,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 68.261,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72478,
    "c": 0.15528,
    "h": 117.5
  },
  "luminance": 0.39365
}

Semantic roles & 50–950 ramp

primary
#9FB228
secondary
#7B6FC7
accent
#41E658
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FB228

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

Preview Lab → · Contrast checker → · Palette generator →

#9FB228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva