#9FA837#9FA837

#9FA837 is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.3% C 0.135 H 113.8°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#9FA837
RGBrgb(159, 168, 55)
HSLhsl(65, 51%, 44%)
HSVhsv(65, 67%, 66%)
CMYKcmyk(5.4%, 0%, 67.3%, 34.1%)
CIE-LABlab(66.25, -17.97, 54.80)
CIE-LCHlch(66.25, 57.67, 108.15°)
OKLaboklab(70.29% -0.0543 0.1233)
OKLCHoklch(70.29% 0.135 113.8)
XYZxyz(28.9911, 35.6526, 8.9681)
Luminance0.3565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA837 #4037A8
analogous
#A87837 #9FA837 #66A837
triadic
#9FA837 #379FA8 #A8379F
tetradic
#9FA837 #37A878 #4037A8 #A83766
square
#9FA837 #37A878 #4037A8 #A83766
split-complementary
#9FA837 #3766A8 #7837A8
monochromatic
#484C19 #737A28 #9FA837 #BEC755 #D0D683

Accessibility & contrast

On white

2.58
#9FA837 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#9FA837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA837
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA837#FFFFFF#000000##000000
##9FA8371.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A027
Deuteranopia (green-blind)
#B4A23F
Tritanopia (blue-blind)
#A99E91
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #9fa837;
/* rgb */ color: rgb(159, 168, 55);
/* oklch */ color: oklch(70.3% 0.135 113.8);
Tailwind
colors: {
  custom: {
    50: '#bec174',
    500: '#9fa837',
    950: '#000000',
  },
}
SCSS
$custom: #9fa837;
$custom-light: #bec174;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa837",
  "rgb": {
    "r": 159,
    "g": 168,
    "b": 55
  },
  "hsl": {
    "h": 64.779,
    "s": 50.673,
    "l": 43.725
  },
  "oklch": {
    "l": 0.7029,
    "c": 0.13475,
    "h": 113.8
  },
  "luminance": 0.35652
}

Semantic roles & 50–950 ramp

primary
#9FA837
secondary
#807BC0
accent
#4EDA59
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#121209
muted
#81817B

Preview Lab

Preview with #9FA837

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

Preview Lab → · Contrast checker → · Palette generator →

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