#9FB227#9FB227

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

Color values

HEX#9FB227
RGBrgb(159, 178, 39)
HSLhsl(68, 64%, 43%)
HSVhsv(68, 78%, 70%)
CMYKcmyk(10.7%, 0%, 78.1%, 30.2%)
CIE-LABlab(69.01, -23.79, 63.14)
CIE-LCHlch(69.01, 67.47, 110.65°)
OKLaboklab(72.47% -0.0719 0.1382)
OKLCHoklch(72.47% 0.156 117.5)
XYZxyz(30.5854, 39.3585, 7.9048)
Luminance0.3936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB227 #3A27B2
analogous
#B27F27 #9FB227 #5AB227
triadic
#9FB227 #279FB2 #B2279F
tetradic
#9FB227 #27B27F #3A27B2 #B2275A
square
#9FB227 #27B27F #3A27B2 #B2275A
split-complementary
#9FB227 #275AB2 #7F27B2
monochromatic
#454E11 #72801C #9FB227 #C1D541 #D1E073

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FB227#FFFFFF#000000##000000
##9FB2271.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)
#BDA934
Tritanopia (blue-blind)
#A9A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9fb227;
/* rgb */ color: rgb(159, 178, 39);
/* oklch */ color: oklch(72.5% 0.156 117.5);
Tailwind
colors: {
  custom: {
    50: '#bfc86d',
    500: '#9fb227',
    950: '#000000',
  },
}
SCSS
$custom: #9fb227;
$custom-light: #bfc86d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb227",
  "rgb": {
    "r": 159,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 68.201,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72472,
    "c": 0.15577,
    "h": 117.5
  },
  "luminance": 0.39358
}

Semantic roles & 50–950 ramp

primary
#9FB227
secondary
#7A6DC8
accent
#41E757
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FB227

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

Preview Lab → · Contrast checker → · Palette generator →

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