#9FA228#9FA228

#9FA228 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.8% C 0.138 H 111.0°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#9FA228
RGBrgb(159, 162, 40)
HSLhsl(61, 60%, 40%)
HSVhsv(61, 75%, 64%)
CMYKcmyk(1.9%, 0%, 75.3%, 36.5%)
CIE-LABlab(64.46, -15.68, 58.62)
CIE-LCHlch(64.46, 60.68, 104.98°)
OKLaboklab(68.82% -0.0493 0.1288)
OKLCHoklch(68.82% 0.138 111)
XYZxyz(27.6024, 33.3655, 6.9933)
Luminance0.3337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA228 #2B28A2
analogous
#A26828 #9FA228 #62A228
triadic
#9FA228 #289FA2 #A2289F
tetradic
#9FA228 #28A268 #2B28A2 #A22862
square
#9FA228 #28A268 #2B28A2 #A22862
split-complementary
#9FA228 #2862A2 #6828A2
monochromatic
#3F4010 #6F711C #9FA228 #CACE39 #D7DA6A

Accessibility & contrast

On white

2.74
#9FA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#9FA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA228
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA228#FFFFFF#000000##000000
##9FA2281.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B0C
Deuteranopia (green-blind)
#B09E32
Tritanopia (blue-blind)
#AA988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa228;
/* rgb */ color: rgb(159, 162, 40);
/* oklch */ color: oklch(68.8% 0.138 111.0);
Tailwind
colors: {
  custom: {
    50: '#bfbd6c',
    500: '#9fa228',
    950: '#000000',
  },
}
SCSS
$custom: #9fa228;
$custom-light: #bfbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa228",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 61.475,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68821,
    "c": 0.13792,
    "h": 111
  },
  "luminance": 0.33365
}

Semantic roles & 50–950 ramp

primary
#9FA228
secondary
#6765C1
accent
#44E448
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA228

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

Preview Lab → · Contrast checker → · Palette generator →

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