#9F8F26#9F8F26

#9F8F26 is a light, vivid yellow. Relative luminance 0.272; OKLCH L 64.6% C 0.121 H 100.2°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9F8F26
RGBrgb(159, 143, 38)
HSLhsl(52, 61%, 39%)
HSVhsv(52, 76%, 62%)
CMYKcmyk(0%, 10.1%, 76.1%, 37.6%)
CIE-LABlab(59.12, -5.70, 54.32)
CIE-LCHlch(59.12, 54.62, 95.99°)
OKLaboklab(64.57% -0.0215 0.1193)
OKLCHoklch(64.57% 0.121 100.2)
XYZxyz(24.4716, 27.1570, 5.7862)
Luminance0.2716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F26 #26369F
analogous
#9F5226 #9F8F26 #729F26
triadic
#9F8F26 #269F8F #8F269F
tetradic
#9F8F26 #269F52 #26369F #9F2672
square
#9F8F26 #269F52 #26369F #9F2672
split-complementary
#9F8F26 #26729F #52269F
monochromatic
#3C360E #6E631A #9F8F26 #CEBA34 #DACB65

Accessibility & contrast

On white

3.27
#9F8F26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#9F8F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F26
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F26#FFFFFF#000000##000000
##9F8F261.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B12
Deuteranopia (green-blind)
#A2912D
Tritanopia (blue-blind)
#AC847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f26;
/* rgb */ color: rgb(159, 143, 38);
/* oklch */ color: oklch(64.6% 0.121 100.2);
Tailwind
colors: {
  custom: {
    50: '#bfaf69',
    500: '#9f8f26',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f26;
$custom-light: #bfaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f26",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 38
  },
  "hsl": {
    "h": 52.066,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64565,
    "c": 0.12121,
    "h": 100.2
  },
  "luminance": 0.27156
}

Semantic roles & 50–950 ramp

primary
#9F8F26
secondary
#616DC0
accent
#59E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8F26

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

Preview Lab → · Contrast checker → · Palette generator →

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