#9FA828#9FA828

#9FA828 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.2% C 0.144 H 113.7°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#9FA828
RGBrgb(159, 168, 40)
HSLhsl(64, 62%, 41%)
HSVhsv(64, 76%, 66%)
CMYKcmyk(5.4%, 0%, 76.2%, 34.1%)
CIE-LABlab(66.16, -18.75, 60.21)
CIE-LCHlch(66.16, 63.06, 107.30°)
OKLaboklab(70.18% -0.0579 0.1322)
OKLCHoklch(70.18% 0.144 113.7)
XYZxyz(28.6846, 35.5300, 7.3540)
Luminance0.3553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA828 #3128A8
analogous
#A87128 #9FA828 #5FA828
triadic
#9FA828 #289FA8 #A8289F
tetradic
#9FA828 #28A871 #3128A8 #A8285F
square
#9FA828 #28A871 #3128A8 #A8285F
split-complementary
#9FA828 #285FA8 #7128A8
monochromatic
#414510 #70771C #9FA828 #C6D13D #D5DC6E

Accessibility & contrast

On white

2.59
#9FA828 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#9FA828 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA828
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA828#FFFFFF#000000##000000
##9FA8281.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A007
Deuteranopia (green-blind)
#B5A233
Tritanopia (blue-blind)
#AA9E90
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9fa828;
/* rgb */ color: rgb(159, 168, 40);
/* oklch */ color: oklch(70.2% 0.144 113.7);
Tailwind
colors: {
  custom: {
    50: '#bfc16d',
    500: '#9fa828',
    950: '#000000',
  },
}
SCSS
$custom: #9fa828;
$custom-light: #bfc16d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa828",
  "rgb": {
    "r": 159,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 64.219,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.70184,
    "c": 0.14427,
    "h": 113.7
  },
  "luminance": 0.35529
}

Semantic roles & 50–950 ramp

primary
#9FA828
secondary
#6F69C3
accent
#43E54F
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA828

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

Preview Lab → · Contrast checker → · Palette generator →

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