#9F8E26#9F8E26

#9F8E26 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.120 H 99.6°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9F8E26
RGBrgb(159, 142, 38)
HSLhsl(52, 61%, 39%)
HSVhsv(52, 76%, 62%)
CMYKcmyk(0%, 10.7%, 76.1%, 37.6%)
CIE-LABlab(58.84, -5.16, 54.06)
CIE-LCHlch(58.84, 54.31, 95.45°)
OKLaboklab(64.35% -0.02 0.1187)
OKLCHoklch(64.35% 0.12 99.6)
XYZxyz(24.3221, 26.8581, 5.7363)
Luminance0.2686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E26 #26379F
analogous
#9F5126 #9F8E26 #739F26
triadic
#9F8E26 #269F8E #8E269F
tetradic
#9F8E26 #269F51 #26379F #9F2673
square
#9F8E26 #269F51 #26379F #9F2673
split-complementary
#9F8E26 #26739F #51269F
monochromatic
#3C360E #6E621A #9F8E26 #CEB934 #DACA65

Accessibility & contrast

On white

3.30
#9F8E26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#9F8E26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8E26
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8E26#FFFFFF#000000##000000
##9F8E261.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A12
Deuteranopia (green-blind)
#A1902D
Tritanopia (blue-blind)
#AC837A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8e26;
/* rgb */ color: rgb(159, 142, 38);
/* oklch */ color: oklch(64.3% 0.120 99.6);
Tailwind
colors: {
  custom: {
    50: '#bfae69',
    500: '#9f8e26',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e26;
$custom-light: #bfae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e26",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 38
  },
  "hsl": {
    "h": 51.57,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64345,
    "c": 0.12041,
    "h": 99.6
  },
  "luminance": 0.26857
}

Semantic roles & 50–950 ramp

primary
#9F8E26
secondary
#616EC0
accent
#5AE543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8E26

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

Preview Lab → · Contrast checker → · Palette generator →

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