#9F8A26#9F8A26

#9F8A26 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.117 H 96.8°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9F8A26
RGBrgb(159, 138, 38)
HSLhsl(50, 61%, 39%)
HSVhsv(50, 76%, 62%)
CMYKcmyk(0%, 13.2%, 76.1%, 37.6%)
CIE-LABlab(57.74, -2.97, 53.02)
CIE-LCHlch(57.74, 53.11, 93.21°)
OKLaboklab(63.47% -0.0138 0.1165)
OKLCHoklch(63.47% 0.117 96.8)
XYZxyz(23.7376, 25.6891, 5.5415)
Luminance0.2569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A26 #263B9F
analogous
#9F4D26 #9F8A26 #779F26
triadic
#9F8A26 #269F8A #8A269F
tetradic
#9F8A26 #269F4D #263B9F #9F2677
square
#9F8A26 #269F4D #263B9F #9F2677
split-complementary
#9F8A26 #26779F #4D269F
monochromatic
#3C340E #6E5F1A #9F8A26 #CEB434 #DAC665

Accessibility & contrast

On white

3.42
#9F8A26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9F8A26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A26
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A26#FFFFFF#000000##000000
##9F8A261.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998714
Deuteranopia (green-blind)
#9E8E2C
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a26;
/* rgb */ color: rgb(159, 138, 38);
/* oklch */ color: oklch(63.5% 0.117 96.8);
Tailwind
colors: {
  custom: {
    50: '#bfab68',
    500: '#9f8a26',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a26;
$custom-light: #bfab68;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a26",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 38
  },
  "hsl": {
    "h": 49.587,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63472,
    "c": 0.11733,
    "h": 96.8
  },
  "luminance": 0.25688
}

Semantic roles & 50–950 ramp

primary
#9F8A26
secondary
#6171C0
accent
#5FE543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A26

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

Preview Lab → · Contrast checker → · Palette generator →

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