#9D8F26#9D8F26

#9D8F26 is a light, vivid yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.121 H 101.4°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9D8F26
RGBrgb(157, 143, 38)
HSLhsl(53, 61%, 38%)
HSVhsv(53, 76%, 62%)
CMYKcmyk(0%, 8.9%, 75.8%, 38.4%)
CIE-LABlab(58.93, -6.61, 54.08)
CIE-LCHlch(58.93, 54.48, 96.97°)
OKLaboklab(64.37% -0.024 0.1189)
OKLCHoklch(64.37% 0.121 101.4)
XYZxyz(24.0781, 26.9541, 5.7677)
Luminance0.2695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F26 #26349D
analogous
#9D5326 #9D8F26 #6F9D26
triadic
#9D8F26 #269D8F #8F269D
tetradic
#9D8F26 #269D53 #26349D #9D266F
square
#9D8F26 #269D53 #26349D #9D266F
split-complementary
#9D8F26 #266F9D #53269D
monochromatic
#3A350E #6C621A #9D8F26 #CEBB33 #D9CC64

Accessibility & contrast

On white

3.29
#9D8F26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#9D8F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F26
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F26#FFFFFF#000000##000000
##9D8F261.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d8f26;
/* rgb */ color: rgb(157, 143, 38);
/* oklch */ color: oklch(64.4% 0.121 101.4);
Tailwind
colors: {
  custom: {
    50: '#beaf69',
    500: '#9d8f26',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f26;
$custom-light: #beaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f26",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 38
  },
  "hsl": {
    "h": 52.941,
    "s": 61.026,
    "l": 38.235
  },
  "oklch": {
    "l": 0.64372,
    "c": 0.12125,
    "h": 101.4
  },
  "luminance": 0.26953
}

Semantic roles & 50–950 ramp

primary
#9D8F26
secondary
#606BBF
accent
#57E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8F26

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

Preview Lab → · Contrast checker → · Palette generator →

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