#9FA628#9FA628

#9FA628 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.7% C 0.142 H 112.8°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#9FA628
RGBrgb(159, 166, 40)
HSLhsl(63, 61%, 40%)
HSVhsv(63, 76%, 65%)
CMYKcmyk(4.2%, 0%, 75.9%, 34.9%)
CIE-LABlab(65.59, -17.73, 59.68)
CIE-LCHlch(65.59, 62.26, 106.55°)
OKLaboklab(69.73% -0.0551 0.131)
OKLCHoklch(69.73% 0.142 112.8)
XYZxyz(28.3182, 34.7972, 7.2319)
Luminance0.3480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA628 #2F28A6
analogous
#A66E28 #9FA628 #60A628
triadic
#9FA628 #289FA6 #A6289F
tetradic
#9FA628 #28A66E #2F28A6 #A62860
square
#9FA628 #28A66E #2F28A6 #A62860
split-complementary
#9FA628 #2860A6 #6E28A6
monochromatic
#414310 #70751C #9FA628 #C8D03B #D6DC6D

Accessibility & contrast

On white

2.64
#9FA628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#9FA628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA628
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA628#FFFFFF#000000##000000
##9FA6281.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E09
Deuteranopia (green-blind)
#B3A133
Tritanopia (blue-blind)
#AA9C8E
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9fa628;
/* rgb */ color: rgb(159, 166, 40);
/* oklch */ color: oklch(69.7% 0.142 112.8);
Tailwind
colors: {
  custom: {
    50: '#bfc06c',
    500: '#9fa628',
    950: '#000000',
  },
}
SCSS
$custom: #9fa628;
$custom-light: #bfc06c;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa628",
  "rgb": {
    "r": 159,
    "g": 166,
    "b": 40
  },
  "hsl": {
    "h": 63.333,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.69729,
    "c": 0.14213,
    "h": 112.8
  },
  "luminance": 0.34797
}

Semantic roles & 50–950 ramp

primary
#9FA628
secondary
#6D67C2
accent
#44E44C
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA628

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

Preview Lab → · Contrast checker → · Palette generator →

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