#9FA538#9FA538

#9FA538 is a light, vivid yellow. Relative luminance 0.346; OKLCH L 69.6% C 0.131 H 112.4°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#9FA538
RGBrgb(159, 165, 56)
HSLhsl(63, 49%, 43%)
HSVhsv(63, 66%, 65%)
CMYKcmyk(3.6%, 0%, 66.1%, 35.3%)
CIE-LABlab(65.41, -16.37, 53.52)
CIE-LCHlch(65.41, 55.97, 107.01°)
OKLaboklab(69.62% -0.0497 0.1208)
OKLCHoklch(69.62% 0.131 112.4)
XYZxyz(28.4678, 34.5673, 8.9132)
Luminance0.3457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA538 #3E38A5
analogous
#A57438 #9FA538 #68A538
triadic
#9FA538 #389FA5 #A5389F
tetradic
#9FA538 #38A574 #3E38A5 #A53868
square
#9FA538 #38A574 #3E38A5 #A53868
split-complementary
#9FA538 #3868A5 #7438A5
monochromatic
#474A19 #737728 #9FA538 #BFC555 #D0D583

Accessibility & contrast

On white

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

On black

7.91
#9FA538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA538
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA538#FFFFFF#000000##000000
##9FA5381.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D29
Deuteranopia (green-blind)
#B1A03F
Tritanopia (blue-blind)
#A99B8F
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9fa538;
/* rgb */ color: rgb(159, 165, 56);
/* oklch */ color: oklch(69.6% 0.131 112.4);
Tailwind
colors: {
  custom: {
    50: '#bebf75',
    500: '#9fa538',
    950: '#000000',
  },
}
SCSS
$custom: #9fa538;
$custom-light: #bebf75;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa538",
  "rgb": {
    "r": 159,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 63.303,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.69618,
    "c": 0.13064,
    "h": 112.4
  },
  "luminance": 0.34567
}

Semantic roles & 50–950 ramp

primary
#9FA538
secondary
#7E7ABE
accent
#4FD957
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#121209
muted
#81817B

Preview Lab

Preview with #9FA538

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

Preview Lab → · Contrast checker → · Palette generator →

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