#9F9826#9F9826

#9F9826 is a light, vivid yellow. Relative luminance 0.300; OKLCH L 66.6% C 0.129 H 105.8°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F9826
RGBrgb(159, 152, 38)
HSLhsl(57, 61%, 39%)
HSVhsv(57, 76%, 62%)
CMYKcmyk(0%, 4.4%, 76.1%, 37.6%)
CIE-LABlab(61.63, -10.54, 56.67)
CIE-LCHlch(61.63, 57.64, 100.53°)
OKLaboklab(66.56% -0.0351 0.1243)
OKLCHoklch(66.56% 0.129 105.8)
XYZxyz(25.8772, 29.9683, 6.2547)
Luminance0.2997 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9826 #262D9F
analogous
#9F5B26 #9F9826 #699F26
triadic
#9F9826 #269F98 #98269F
tetradic
#9F9826 #269F5B #262D9F #9F2669
square
#9F9826 #269F5B #262D9F #9F2669
split-complementary
#9F9826 #26699F #5B269F
monochromatic
#3C3A0E #6E691A #9F9826 #CEC534 #DAD365

Accessibility & contrast

On white

3.00
#9F9826 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#9F9826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9826
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9826#FFFFFF#000000##000000
##9F98261.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6920D
Deuteranopia (green-blind)
#A8972F
Tritanopia (blue-blind)
#AB8D82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9f9826;
/* rgb */ color: rgb(159, 152, 38);
/* oklch */ color: oklch(66.6% 0.129 105.8);
Tailwind
colors: {
  custom: {
    50: '#bfb66a',
    500: '#9f9826',
    950: '#000000',
  },
}
SCSS
$custom: #9f9826;
$custom-light: #bfb66a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9826",
  "rgb": {
    "r": 159,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 56.529,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.66559,
    "c": 0.12915,
    "h": 105.8
  },
  "luminance": 0.29967
}

Semantic roles & 50–950 ramp

primary
#9F9826
secondary
#6166C0
accent
#4DE543
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9826

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

Preview Lab → · Contrast checker → · Palette generator →

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