#9D9826#9D9826

#9D9826 is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.4% C 0.129 H 106.9°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#9D9826
RGBrgb(157, 152, 38)
HSLhsl(57, 61%, 38%)
HSVhsv(57, 76%, 62%)
CMYKcmyk(0%, 3.2%, 75.8%, 38.4%)
CIE-LABlab(61.45, -11.43, 56.44)
CIE-LCHlch(61.45, 57.59, 101.45°)
OKLaboklab(66.38% -0.0375 0.1239)
OKLCHoklch(66.38% 0.129 106.9)
XYZxyz(25.4837, 29.7654, 6.2363)
Luminance0.2977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9826 #262B9D
analogous
#9D5C26 #9D9826 #669D26
triadic
#9D9826 #269D98 #98269D
tetradic
#9D9826 #269D5C #262B9D #9D2666
square
#9D9826 #269D5C #262B9D #9D2666
split-complementary
#9D9826 #26669D #5C269D
monochromatic
#3A390E #6C681A #9D9826 #CEC733 #D9D564

Accessibility & contrast

On white

3.02
#9D9826 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#9D9826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D9826
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9826#FFFFFF#000000##000000
##9D98261.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5920D
Deuteranopia (green-blind)
#A8962F
Tritanopia (blue-blind)
#A98E82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d9826;
/* rgb */ color: rgb(157, 152, 38);
/* oklch */ color: oklch(66.4% 0.129 106.9);
Tailwind
colors: {
  custom: {
    50: '#bdb66a',
    500: '#9d9826',
    950: '#000000',
  },
}
SCSS
$custom: #9d9826;
$custom-light: #bdb66a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9826",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 57.479,
    "s": 61.026,
    "l": 38.235
  },
  "oklch": {
    "l": 0.66376,
    "c": 0.12944,
    "h": 106.9
  },
  "luminance": 0.29765
}

Semantic roles & 50–950 ramp

primary
#9D9826
secondary
#6064BF
accent
#4AE444
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9D9826

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

Preview Lab → · Contrast checker → · Palette generator →

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