#9F8727#9F8727

#9F8727 is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.8% C 0.115 H 94.4°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9F8727
RGBrgb(159, 135, 39)
HSLhsl(48, 61%, 39%)
HSVhsv(48, 75%, 62%)
CMYKcmyk(0%, 15.1%, 75.5%, 37.6%)
CIE-LABlab(56.93, -1.28, 51.86)
CIE-LCHlch(56.93, 51.88, 91.41°)
OKLaboklab(62.83% -0.0089 0.1143)
OKLCHoklch(62.83% 0.115 94.4)
XYZxyz(23.3295, 24.8467, 5.4861)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8727 #273F9F
analogous
#9F4B27 #9F8727 #7B9F27
triadic
#9F8727 #279F87 #87279F
tetradic
#9F8727 #279F4B #273F9F #9F277B
square
#9F8727 #279F4B #273F9F #9F277B
split-complementary
#9F8727 #277B9F #4B279F
monochromatic
#3D340F #6E5D1B #9F8727 #CEAF36 #DAC367

Accessibility & contrast

On white

3.52
#9F8727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#9F8727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8727
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8727#FFFFFF#000000##000000
##9F87271.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968417
Deuteranopia (green-blind)
#9C8C2D
Tritanopia (blue-blind)
#AC7C74
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9f8727;
/* rgb */ color: rgb(159, 135, 39);
/* oklch */ color: oklch(62.8% 0.115 94.4);
Tailwind
colors: {
  custom: {
    50: '#bfa968',
    500: '#9f8727',
    950: '#000000',
  },
}
SCSS
$custom: #9f8727;
$custom-light: #bfa968;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8727",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 48,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.62829,
    "c": 0.1146,
    "h": 94.4
  },
  "luminance": 0.24845
}

Semantic roles & 50–950 ramp

primary
#9F8727
secondary
#6275C0
accent
#64E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9F8727

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

Preview Lab → · Contrast checker → · Palette generator →

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