#9C8F27#9C8F27

#9C8F27 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.3% C 0.121 H 102.0°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9C8F27
RGBrgb(156, 143, 39)
HSLhsl(53, 60%, 38%)
HSVhsv(53, 75%, 61%)
CMYKcmyk(0%, 8.3%, 75%, 38.8%)
CIE-LABlab(58.84, -7.02, 53.60)
CIE-LCHlch(58.84, 54.06, 97.46°)
OKLaboklab(64.28% -0.025 0.1181)
OKLCHoklch(64.28% 0.121 102)
XYZxyz(23.9001, 26.8604, 5.8447)
Luminance0.2686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8F27 #27349C
analogous
#9C5427 #9C8F27 #6E9C27
triadic
#9C8F27 #279C8F #8F279C
tetradic
#9C8F27 #279C54 #27349C #9C276E
square
#9C8F27 #279C54 #27349C #9C276E
split-complementary
#9C8F27 #276E9C #54279C
monochromatic
#3A350F #6B621B #9C8F27 #CCBB34 #D8CC65

Accessibility & contrast

On white

3.30
#9C8F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#9C8F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8F27
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8F27#FFFFFF#000000##000000
##9C8F271.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A14
Deuteranopia (green-blind)
#A0902E
Tritanopia (blue-blind)
#A8847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9c8f27;
/* rgb */ color: rgb(156, 143, 39);
/* oklch */ color: oklch(64.3% 0.121 102.0);
Tailwind
colors: {
  custom: {
    50: '#bdaf69',
    500: '#9c8f27',
    950: '#000000',
  },
}
SCSS
$custom: #9c8f27;
$custom-light: #bdaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8f27",
  "rgb": {
    "r": 156,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 53.333,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.64282,
    "c": 0.12068,
    "h": 102
  },
  "luminance": 0.26859
}

Semantic roles & 50–950 ramp

primary
#9C8F27
secondary
#616BBE
accent
#56E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #9C8F27

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

Preview Lab → · Contrast checker → · Palette generator →

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