#9F9A23#9F9A23

#9F9A23 is a light, vivid yellow. Relative luminance 0.306; OKLCH L 67.0% C 0.133 H 107.0°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#9F9A23
RGBrgb(159, 154, 35)
HSLhsl(58, 64%, 38%)
HSVhsv(58, 78%, 62%)
CMYKcmyk(0%, 3.1%, 78%, 37.6%)
CIE-LABlab(62.17, -11.72, 58.17)
CIE-LCHlch(62.17, 59.34, 101.39°)
OKLaboklab(66.99% -0.0387 0.1269)
OKLCHoklch(66.99% 0.133 107)
XYZxyz(26.1581, 30.6044, 6.1191)
Luminance0.3060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9A23 #23289F
analogous
#9F5C23 #9F9A23 #669F23
triadic
#9F9A23 #239F9A #9A239F
tetradic
#9F9A23 #239F5C #23289F #9F2366
square
#9F9A23 #239F5C #23289F #9F2366
split-complementary
#9F9A23 #23669F #5C239F
monochromatic
#3B390D #6D6918 #9F9A23 #D1CA2E #DCD760

Accessibility & contrast

On white

2.95
#9F9A23 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.12
#9F9A23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9A23
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9A23#FFFFFF#000000##000000
##9F9A231.002.957.127.12
#FFFFFF2.951.0021.0021.00
#0000007.1221.001.001.00
##0000007.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89403
Deuteranopia (green-blind)
#AA982D
Tritanopia (blue-blind)
#AB8F84
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9f9a23;
/* rgb */ color: rgb(159, 154, 35);
/* oklch */ color: oklch(67.0% 0.133 107.0);
Tailwind
colors: {
  custom: {
    50: '#bfb769',
    500: '#9f9a23',
    950: '#000000',
  },
}
SCSS
$custom: #9f9a23;
$custom-light: #bfb769;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9a23",
  "rgb": {
    "r": 159,
    "g": 154,
    "b": 35
  },
  "hsl": {
    "h": 57.581,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.66988,
    "c": 0.13267,
    "h": 107
  },
  "luminance": 0.30603
}

Semantic roles & 50–950 ramp

primary
#9F9A23
secondary
#5D61C1
accent
#48E741
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9A23

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

Preview Lab → · Contrast checker → · Palette generator →

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