#9E9826#9E9826

#9E9826 is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.5% C 0.129 H 106.3°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9E9826
RGBrgb(158, 152, 38)
HSLhsl(57, 61%, 38%)
HSVhsv(57, 76%, 62%)
CMYKcmyk(0%, 3.8%, 75.9%, 38%)
CIE-LABlab(61.54, -10.98, 56.56)
CIE-LCHlch(61.54, 57.61, 100.99°)
OKLaboklab(66.47% -0.0363 0.1241)
OKLCHoklch(66.47% 0.129 106.3)
XYZxyz(25.6797, 29.8665, 6.2455)
Luminance0.2987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9826 #262C9E
analogous
#9E5C26 #9E9826 #689E26
triadic
#9E9826 #269E98 #98269E
tetradic
#9E9826 #269E5C #262C9E #9E2668
square
#9E9826 #269E5C #262C9E #9E2668
split-complementary
#9E9826 #26689E #5C269E
monochromatic
#3B390E #6D691A #9E9826 #CEC633 #DAD465

Accessibility & contrast

On white

3.01
#9E9826 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#9E9826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E9826
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9826#FFFFFF#000000##000000
##9E98261.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A5920D
Deuteranopia (green-blind)
#A8972F
Tritanopia (blue-blind)
#AA8D82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9e9826;
/* rgb */ color: rgb(158, 152, 38);
/* oklch */ color: oklch(66.5% 0.129 106.3);
Tailwind
colors: {
  custom: {
    50: '#beb66a',
    500: '#9e9826',
    950: '#000000',
  },
}
SCSS
$custom: #9e9826;
$custom-light: #beb66a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9826",
  "rgb": {
    "r": 158,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 57,
    "s": 61.224,
    "l": 38.431
  },
  "oklch": {
    "l": 0.66467,
    "c": 0.12929,
    "h": 106.3
  },
  "luminance": 0.29866
}

Semantic roles & 50–950 ramp

primary
#9E9826
secondary
#6065C0
accent
#4CE443
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9E9826

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

Preview Lab → · Contrast checker → · Palette generator →

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