#9FA128#9FA128

#9FA128 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.6% C 0.137 H 110.5°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#9FA128
RGBrgb(159, 161, 40)
HSLhsl(61, 60%, 39%)
HSVhsv(61, 75%, 63%)
CMYKcmyk(1.2%, 0%, 75.2%, 36.9%)
CIE-LABlab(64.17, -15.16, 58.36)
CIE-LCHlch(64.17, 60.30, 104.57°)
OKLaboklab(68.59% -0.0479 0.1282)
OKLCHoklch(68.59% 0.137 110.5)
XYZxyz(27.4269, 33.0146, 6.9348)
Luminance0.3301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA128 #2A28A1
analogous
#A16728 #9FA128 #63A128
triadic
#9FA128 #289FA1 #A1289F
tetradic
#9FA128 #28A167 #2A28A1 #A12863
square
#9FA128 #28A167 #2A28A1 #A12863
split-complementary
#9FA128 #2863A1 #6728A1
monochromatic
#3E3F10 #6F701C #9FA128 #CBCE39 #D8DA6A

Accessibility & contrast

On white

2.76
#9FA128 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#9FA128 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA128
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA128#FFFFFF#000000##000000
##9FA1281.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A0C
Deuteranopia (green-blind)
#AF9D32
Tritanopia (blue-blind)
#AA978A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa128;
/* rgb */ color: rgb(159, 161, 40);
/* oklch */ color: oklch(68.6% 0.137 110.5);
Tailwind
colors: {
  custom: {
    50: '#bfbc6c',
    500: '#9fa128',
    950: '#000000',
  },
}
SCSS
$custom: #9fa128;
$custom-light: #bfbc6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa128",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 40
  },
  "hsl": {
    "h": 60.992,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68594,
    "c": 0.13689,
    "h": 110.5
  },
  "luminance": 0.33014
}

Semantic roles & 50–950 ramp

primary
#9FA128
secondary
#6665C0
accent
#44E347
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA128

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

Preview Lab → · Contrast checker → · Palette generator →

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