#9F9C23#9F9C23

#9F9C23 is a light, vivid yellow. Relative luminance 0.313; OKLCH L 67.4% C 0.135 H 108.0°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#9F9C23
RGBrgb(159, 156, 35)
HSLhsl(59, 64%, 38%)
HSVhsv(59, 78%, 62%)
CMYKcmyk(0%, 1.9%, 78%, 37.6%)
CIE-LABlab(62.73, -12.77, 58.68)
CIE-LCHlch(62.73, 60.06, 102.28°)
OKLaboklab(67.44% -0.0417 0.128)
OKLCHoklch(67.44% 0.135 108)
XYZxyz(26.4910, 31.2701, 6.2301)
Luminance0.3127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9C23 #23269F
analogous
#9F5E23 #9F9C23 #649F23
triadic
#9F9C23 #239F9C #9C239F
tetradic
#9F9C23 #239F5E #23269F #9F2364
square
#9F9C23 #239F5E #23269F #9F2364
split-complementary
#9F9C23 #23649F #5E239F
monochromatic
#3B3A0D #6D6B18 #9F9C23 #D1CD2E #DCD960

Accessibility & contrast

On white

2.90
#9F9C23 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#9F9C23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9C23
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9C23#FFFFFF#000000##000000
##9F9C231.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99601
Deuteranopia (green-blind)
#AB9A2D
Tritanopia (blue-blind)
#AB9186
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9f9c23;
/* rgb */ color: rgb(159, 156, 35);
/* oklch */ color: oklch(67.4% 0.135 108.0);
Tailwind
colors: {
  custom: {
    50: '#bfb869',
    500: '#9f9c23',
    950: '#000000',
  },
}
SCSS
$custom: #9f9c23;
$custom-light: #bfb869;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9c23",
  "rgb": {
    "r": 159,
    "g": 156,
    "b": 35
  },
  "hsl": {
    "h": 58.548,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.67437,
    "c": 0.13459,
    "h": 108
  },
  "luminance": 0.31269
}

Semantic roles & 50–950 ramp

primary
#9F9C23
secondary
#5D5FC1
accent
#45E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9C23

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

Preview Lab → · Contrast checker → · Palette generator →

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