#9F8726#9F8726

#9F8726 is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.8% C 0.115 H 94.5°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9F8726
RGBrgb(159, 135, 38)
HSLhsl(48, 61%, 39%)
HSVhsv(48, 76%, 62%)
CMYKcmyk(0%, 15.1%, 76.1%, 37.6%)
CIE-LABlab(56.92, -1.32, 52.24)
CIE-LCHlch(56.92, 52.26, 91.45°)
OKLaboklab(62.82% -0.0091 0.1149)
OKLCHoklch(62.82% 0.115 94.5)
XYZxyz(23.3132, 24.8401, 5.4000)
Luminance0.2484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8726 #263E9F
analogous
#9F4A26 #9F8726 #7A9F26
triadic
#9F8726 #269F87 #87269F
tetradic
#9F8726 #269F4A #263E9F #9F267A
square
#9F8726 #269F4A #263E9F #9F267A
split-complementary
#9F8726 #267A9F #4A269F
monochromatic
#3C330E #6E5D1A #9F8726 #CEB034 #DAC365

Accessibility & contrast

On white

3.52
#9F8726 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#9F8726 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8726
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8726#FFFFFF#000000##000000
##9F87261.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968415
Deuteranopia (green-blind)
#9C8C2C
Tritanopia (blue-blind)
#AC7C74
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9f8726;
/* rgb */ color: rgb(159, 135, 38);
/* oklch */ color: oklch(62.8% 0.115 94.5);
Tailwind
colors: {
  custom: {
    50: '#bfa968',
    500: '#9f8726',
    950: '#000000',
  },
}
SCSS
$custom: #9f8726;
$custom-light: #bfa968;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8726",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 48.099,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.62822,
    "c": 0.11522,
    "h": 94.5
  },
  "luminance": 0.24839
}

Semantic roles & 50–950 ramp

primary
#9F8726
secondary
#6174C0
accent
#63E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8726

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

Preview Lab → · Contrast checker → · Palette generator →

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