#9F9727#9F9727

#9F9727 is a light, vivid yellow. Relative luminance 0.297; OKLCH L 66.3% C 0.128 H 105.2°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9F9727
RGBrgb(159, 151, 39)
HSLhsl(56, 61%, 39%)
HSVhsv(56, 75%, 62%)
CMYKcmyk(0%, 5%, 75.5%, 37.6%)
CIE-LABlab(61.35, -9.96, 56.06)
CIE-LCHlch(61.35, 56.94, 100.07°)
OKLaboklab(66.34% -0.0334 0.1232)
OKLCHoklch(66.34% 0.128 105.2)
XYZxyz(25.7320, 29.6516, 6.2870)
Luminance0.2965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9727 #272F9F
analogous
#9F5B27 #9F9727 #6B9F27
triadic
#9F9727 #279F97 #97279F
tetradic
#9F9727 #279F5B #272F9F #9F276B
square
#9F9727 #279F5B #272F9F #9F276B
split-complementary
#9F9727 #276B9F #5B279F
monochromatic
#3D3A0F #6E681B #9F9727 #CEC336 #DAD267

Accessibility & contrast

On white

3.03
#9F9727 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#9F9727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F9727
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9727#FFFFFF#000000##000000
##9F97271.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59110
Deuteranopia (green-blind)
#A8962F
Tritanopia (blue-blind)
#AB8C82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9f9727;
/* rgb */ color: rgb(159, 151, 39);
/* oklch */ color: oklch(66.3% 0.128 105.2);
Tailwind
colors: {
  custom: {
    50: '#bfb56a',
    500: '#9f9727',
    950: '#000000',
  },
}
SCSS
$custom: #9f9727;
$custom-light: #bfb56a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9727",
  "rgb": {
    "r": 159,
    "g": 151,
    "b": 39
  },
  "hsl": {
    "h": 56,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.66342,
    "c": 0.12764,
    "h": 105.2
  },
  "luminance": 0.29651
}

Semantic roles & 50–950 ramp

primary
#9F9727
secondary
#6268C0
accent
#4FE444
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #9F9727

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

Preview Lab → · Contrast checker → · Palette generator →

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