#9D8F27#9D8F27

#9D8F27 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#9D8F27
RGBrgb(157, 143, 39)
HSLhsl(53, 60%, 38%)
HSVhsv(53, 75%, 62%)
CMYKcmyk(0%, 8.9%, 75.2%, 38.4%)
CIE-LABlab(58.94, -6.56, 53.72)
CIE-LCHlch(58.94, 54.12, 96.97°)
OKLaboklab(64.38% -0.0238 0.1183)
OKLCHoklch(64.38% 0.121 101.4)
XYZxyz(24.0944, 26.9606, 5.8538)
Luminance0.2696 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F27 #27359D
analogous
#9D5427 #9D8F27 #709D27
triadic
#9D8F27 #279D8F #8F279D
tetradic
#9D8F27 #279D54 #27359D #9D2770
square
#9D8F27 #279D54 #27359D #9D2770
split-complementary
#9D8F27 #27709D #54279D
monochromatic
#3B360F #6C621B #9D8F27 #CDBB35 #D9CB66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8F27#FFFFFF#000000##000000
##9D8F271.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)
#9D8B14
Deuteranopia (green-blind)
#A1902E
Tritanopia (blue-blind)
#A9847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f27;
/* rgb */ color: rgb(157, 143, 39);
/* oklch */ color: oklch(64.4% 0.121 101.4);
Tailwind
colors: {
  custom: {
    50: '#bdaf69',
    500: '#9d8f27',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f27;
$custom-light: #bdaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f27",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 52.881,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.64378,
    "c": 0.12064,
    "h": 101.4
  },
  "luminance": 0.2696
}

Semantic roles & 50–950 ramp

primary
#9D8F27
secondary
#616CBF
accent
#57E344
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8F27

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

Preview Lab → · Contrast checker → · Palette generator →

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