#9FB231#9FB231

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

Color values

HEX#9FB231
RGBrgb(159, 178, 49)
HSLhsl(69, 57%, 45%)
HSVhsv(69, 72%, 70%)
CMYKcmyk(10.7%, 0%, 72.5%, 30.2%)
CIE-LABlab(69.06, -23.32, 59.88)
CIE-LCHlch(69.06, 64.26, 111.28°)
OKLaboklab(72.53% -0.0698 0.133)
OKLCHoklch(72.53% 0.15 117.7)
XYZxyz(30.7735, 39.4338, 8.8955)
Luminance0.3943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB231 #4431B2
analogous
#B28531 #9FB231 #5FB231
triadic
#9FB231 #319FB2 #B2319F
tetradic
#9FB231 #31B285 #4431B2 #B2315F
square
#9FB231 #31B285 #4431B2 #B2315F
split-complementary
#9FB231 #315FB2 #8531B2
monochromatic
#495217 #748224 #9FB231 #BDCF51 #CFDC81

Accessibility & contrast

On white

2.36
#9FB231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#9FB231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB231
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB231#FFFFFF#000000##000000
##9FB2311.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA819
Deuteranopia (green-blind)
#BCA93C
Tritanopia (blue-blind)
#A9A899
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9fb231;
/* rgb */ color: rgb(159, 178, 49);
/* oklch */ color: oklch(72.5% 0.150 117.7);
Tailwind
colors: {
  custom: {
    50: '#bfc972',
    500: '#9fb231',
    950: '#000000',
  },
}
SCSS
$custom: #9fb231;
$custom-light: #bfc972;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb231",
  "rgb": {
    "r": 159,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 68.837,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72533,
    "c": 0.15022,
    "h": 117.7
  },
  "luminance": 0.39433
}

Semantic roles & 50–950 ramp

primary
#9FB231
secondary
#8579C5
accent
#48E05E
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FB231

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

Preview Lab → · Contrast checker → · Palette generator →

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