#9F8A27#9F8A27

#9F8A27 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.117 H 96.7°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9F8A27
RGBrgb(159, 138, 39)
HSLhsl(50, 61%, 39%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 13.2%, 75.5%, 37.6%)
CIE-LABlab(57.75, -2.93, 52.65)
CIE-LCHlch(57.75, 52.73, 93.18°)
OKLaboklab(63.48% -0.0136 0.1159)
OKLCHoklch(63.48% 0.117 96.7)
XYZxyz(23.7540, 25.6956, 5.6276)
Luminance0.2569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A27 #273C9F
analogous
#9F4E27 #9F8A27 #789F27
triadic
#9F8A27 #279F8A #8A279F
tetradic
#9F8A27 #279F4E #273C9F #9F2778
square
#9F8A27 #279F4E #273C9F #9F2778
split-complementary
#9F8A27 #27789F #4E279F
monochromatic
#3D350F #6E5F1B #9F8A27 #CEB336 #DAC667

Accessibility & contrast

On white

3.42
#9F8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9F8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A27
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A27#FFFFFF#000000##000000
##9F8A271.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988716
Deuteranopia (green-blind)
#9E8E2D
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a27;
/* rgb */ color: rgb(159, 138, 39);
/* oklch */ color: oklch(63.5% 0.117 96.7);
Tailwind
colors: {
  custom: {
    50: '#bfab69',
    500: '#9f8a27',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a27;
$custom-light: #bfab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a27",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 49.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63479,
    "c": 0.11672,
    "h": 96.7
  },
  "luminance": 0.25694
}

Semantic roles & 50–950 ramp

primary
#9F8A27
secondary
#6273C0
accent
#60E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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