#9F8628#9F8628

#9F8628 is a light, moderate yellow. Relative luminance 0.246; OKLCH L 62.6% C 0.113 H 93.6°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#9F8628
RGBrgb(159, 134, 40)
HSLhsl(47, 60%, 39%)
HSVhsv(47, 75%, 62%)
CMYKcmyk(0%, 15.7%, 74.8%, 37.6%)
CIE-LABlab(56.66, -0.68, 51.22)
CIE-LCHlch(56.66, 51.22, 90.76°)
OKLaboklab(62.62% -0.0071 0.1131)
OKLCHoklch(62.62% 0.113 93.6)
XYZxyz(23.2074, 24.5757, 5.5283)
Luminance0.2457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8628 #28419F
analogous
#9F4B28 #9F8628 #7D9F28
triadic
#9F8628 #289F86 #86289F
tetradic
#9F8628 #289F4B #28419F #9F287D
square
#9F8628 #289F4B #28419F #9F287D
split-complementary
#9F8628 #287D9F #4B289F
monochromatic
#3D340F #6E5D1C #9F8628 #CDAD37 #D9C168

Accessibility & contrast

On white

3.55
#9F8628 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#9F8628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8628
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8628#FFFFFF#000000##000000
##9F86281.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958419
Deuteranopia (green-blind)
#9B8B2D
Tritanopia (blue-blind)
#AC7B73
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9f8628;
/* rgb */ color: rgb(159, 134, 40);
/* oklch */ color: oklch(62.6% 0.113 93.6);
Tailwind
colors: {
  custom: {
    50: '#bfa869',
    500: '#9f8628',
    950: '#000000',
  },
}
SCSS
$custom: #9f8628;
$custom-light: #bfa869;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8628",
  "rgb": {
    "r": 159,
    "g": 134,
    "b": 40
  },
  "hsl": {
    "h": 47.395,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.62621,
    "c": 0.1133,
    "h": 93.6
  },
  "luminance": 0.24574
}

Semantic roles & 50–950 ramp

primary
#9F8628
secondary
#6477BF
accent
#66E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9F8628

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

Preview Lab → · Contrast checker → · Palette generator →

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