#9F8D26#9F8D26

#9F8D26 is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.1% C 0.120 H 98.9°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9F8D26
RGBrgb(159, 141, 38)
HSLhsl(51, 61%, 39%)
HSVhsv(51, 76%, 62%)
CMYKcmyk(0%, 11.3%, 76.1%, 37.6%)
CIE-LABlab(58.57, -4.62, 53.80)
CIE-LCHlch(58.57, 54.00, 94.90°)
OKLaboklab(64.13% -0.0185 0.1182)
OKLCHoklch(64.13% 0.12 98.9)
XYZxyz(24.1740, 26.5618, 5.6870)
Luminance0.2656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D26 #26389F
analogous
#9F5026 #9F8D26 #749F26
triadic
#9F8D26 #269F8D #8D269F
tetradic
#9F8D26 #269F50 #26389F #9F2674
square
#9F8D26 #269F50 #26389F #9F2674
split-complementary
#9F8D26 #26749F #50269F
monochromatic
#3C350E #6E611A #9F8D26 #CEB734 #DAC965

Accessibility & contrast

On white

3.33
#9F8D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#9F8D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D26
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D26#FFFFFF#000000##000000
##9F8D261.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8912
Deuteranopia (green-blind)
#A0902D
Tritanopia (blue-blind)
#AC8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d26;
/* rgb */ color: rgb(159, 141, 38);
/* oklch */ color: oklch(64.1% 0.120 98.9);
Tailwind
colors: {
  custom: {
    50: '#bfae68',
    500: '#9f8d26',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d26;
$custom-light: #bfae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d26",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 38
  },
  "hsl": {
    "h": 51.074,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64126,
    "c": 0.1196,
    "h": 98.9
  },
  "luminance": 0.26561
}

Semantic roles & 50–950 ramp

primary
#9F8D26
secondary
#616FC0
accent
#5BE543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D26

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

Preview Lab → · Contrast checker → · Palette generator →

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