#9F9C2F#9F9C2F

#9F9C2F is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.5% C 0.127 H 107.8°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#9F9C2F
RGBrgb(159, 156, 47)
HSLhsl(58, 54%, 40%)
HSVhsv(58, 70%, 62%)
CMYKcmyk(0%, 1.9%, 70.4%, 37.6%)
CIE-LABlab(62.81, -12.21, 54.50)
CIE-LCHlch(62.81, 55.85, 102.63°)
OKLaboklab(67.52% -0.039 0.1213)
OKLCHoklch(67.52% 0.127 107.8)
XYZxyz(26.7006, 31.3540, 7.3342)
Luminance0.3135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9C2F #2F329F
analogous
#9F642F #9F9C2F #6A9F2F
triadic
#9F9C2F #2F9F9C #9C2F9F
tetradic
#9F9C2F #2F9F64 #2F329F #9F2F6A
square
#9F9C2F #2F9F64 #2F329F #9F2F6A
split-complementary
#9F9C2F #2F6A9F #642F9F
monochromatic
#413F13 #706E21 #9F9C2F #C8C444 #D6D373

Accessibility & contrast

On white

2.89
#9F9C2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#9F9C2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9C2F
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9C2F#FFFFFF#000000##000000
##9F9C2F1.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9961D
Deuteranopia (green-blind)
#AB9A37
Tritanopia (blue-blind)
#AB9286
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9f9c2f;
/* rgb */ color: rgb(159, 156, 47);
/* oklch */ color: oklch(67.5% 0.127 107.8);
Tailwind
colors: {
  custom: {
    50: '#bfb86f',
    500: '#9f9c2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f9c2f;
$custom-light: #bfb86f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9c2f",
  "rgb": {
    "r": 159,
    "g": 156,
    "b": 47
  },
  "hsl": {
    "h": 58.393,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.67516,
    "c": 0.12744,
    "h": 107.8
  },
  "luminance": 0.31353
}

Semantic roles & 50–950 ramp

primary
#9F9C2F
secondary
#6D6FBD
accent
#4EDE4A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131108
muted
#82807B

Preview Lab

Preview with #9F9C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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