#9FA540#9FA540

#9FA540 is a light, vivid yellow. Relative luminance 0.347; OKLCH L 69.7% C 0.124 H 112.4°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#9FA540
RGBrgb(159, 165, 64)
HSLhsl(64, 44%, 45%)
HSVhsv(64, 61%, 65%)
CMYKcmyk(3.6%, 0%, 61.2%, 35.3%)
CIE-LABlab(65.48, -15.83, 50.16)
CIE-LCHlch(65.48, 52.60, 107.52°)
OKLaboklab(69.69% -0.0473 0.1149)
OKLCHoklch(69.69% 0.124 112.4)
XYZxyz(28.6794, 34.6520, 10.0272)
Luminance0.3465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA540 #4640A5
analogous
#A57840 #9FA540 #6DA540
triadic
#9FA540 #409FA5 #A5409F
tetradic
#9FA540 #40A578 #4640A5 #A5406D
square
#9FA540 #40A578 #4640A5 #A5406D
split-complementary
#9FA540 #406DA5 #7840A5
monochromatic
#4A4D1E #75792F #9FA540 #BCC261 #CFD38D

Accessibility & contrast

On white

2.65
#9FA540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#9FA540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA540
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA540#FFFFFF#000000##000000
##9FA5401.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E34
Deuteranopia (green-blind)
#B1A046
Tritanopia (blue-blind)
#A99C90
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9fa540;
/* rgb */ color: rgb(159, 165, 64);
/* oklch */ color: oklch(69.7% 0.124 112.4);
Tailwind
colors: {
  custom: {
    50: '#bebf79',
    500: '#9fa540',
    950: '#000000',
  },
}
SCSS
$custom: #9fa540;
$custom-light: #bebf79;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa540",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 63.564,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69692,
    "c": 0.12426,
    "h": 112.4
  },
  "luminance": 0.34651
}

Semantic roles & 50–950 ramp

primary
#9FA540
secondary
#8783BE
accent
#54D45C
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#121209
muted
#81817B

Preview Lab

Preview with #9FA540

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

Preview Lab → · Contrast checker → · Palette generator →

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