#9F9227#9F9227

#9F9227 is a light, vivid yellow. Relative luminance 0.281; OKLCH L 65.2% C 0.123 H 102.1°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9F9227
RGBrgb(159, 146, 39)
HSLhsl(54, 61%, 39%)
HSVhsv(54, 75%, 62%)
CMYKcmyk(0%, 8.2%, 75.5%, 37.6%)
CIE-LABlab(59.96, -7.28, 54.75)
CIE-LCHlch(59.96, 55.23, 97.58°)
OKLaboklab(65.23% -0.0259 0.1204)
OKLCHoklch(65.23% 0.123 102.1)
XYZxyz(24.9443, 28.0763, 6.0244)
Luminance0.2807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9227 #27349F
analogous
#9F5627 #9F9227 #709F27
triadic
#9F9227 #279F92 #92279F
tetradic
#9F9227 #279F56 #27349F #9F2770
square
#9F9227 #279F56 #27349F #9F2770
split-complementary
#9F9227 #27709F #56279F
monochromatic
#3D380F #6E651B #9F9227 #CEBD36 #DACD67

Accessibility & contrast

On white

3.17
#9F9227 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#9F9227 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9227
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9227#FFFFFF#000000##000000
##9F92271.003.176.616.61
#FFFFFF3.171.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D12
Deuteranopia (green-blind)
#A4932F
Tritanopia (blue-blind)
#AB877D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9f9227;
/* rgb */ color: rgb(159, 146, 39);
/* oklch */ color: oklch(65.2% 0.123 102.1);
Tailwind
colors: {
  custom: {
    50: '#bfb16a',
    500: '#9f9227',
    950: '#000000',
  },
}
SCSS
$custom: #9f9227;
$custom-light: #bfb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9227",
  "rgb": {
    "r": 159,
    "g": 146,
    "b": 39
  },
  "hsl": {
    "h": 53.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.65232,
    "c": 0.12315,
    "h": 102.1
  },
  "luminance": 0.28075
}

Semantic roles & 50–950 ramp

primary
#9F9227
secondary
#626CC0
accent
#55E444
background
#FCFAF6
surface
#F8F5EB
border
#D1CFC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F9227

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

Preview Lab → · Contrast checker → · Palette generator →

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