#9FA227#9FA227

#9FA227 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.8% C 0.138 H 111.0°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#9FA227
RGBrgb(159, 162, 39)
HSLhsl(61, 61%, 39%)
HSVhsv(61, 76%, 64%)
CMYKcmyk(1.9%, 0%, 75.9%, 36.5%)
CIE-LABlab(64.45, -15.73, 58.95)
CIE-LCHlch(64.45, 61.01, 104.94°)
OKLaboklab(68.81% -0.0496 0.1293)
OKLCHoklch(68.81% 0.138 111)
XYZxyz(27.5856, 33.3588, 6.9048)
Luminance0.3336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA227 #2A27A2
analogous
#A26727 #9FA227 #62A227
triadic
#9FA227 #279FA2 #A2279F
tetradic
#9FA227 #27A267 #2A27A2 #A22762
square
#9FA227 #27A267 #2A27A2 #A22762
split-complementary
#9FA227 #2762A2 #6727A2
monochromatic
#3E3F0F #6F711B #9FA227 #CBCF37 #D8DB69

Accessibility & contrast

On white

2.74
#9FA227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#9FA227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA227
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA227#FFFFFF#000000##000000
##9FA2271.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B09
Deuteranopia (green-blind)
#B09E31
Tritanopia (blue-blind)
#AA988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa227;
/* rgb */ color: rgb(159, 162, 39);
/* oklch */ color: oklch(68.8% 0.138 111.0);
Tailwind
colors: {
  custom: {
    50: '#bfbd6b',
    500: '#9fa227',
    950: '#000000',
  },
}
SCSS
$custom: #9fa227;
$custom-light: #bfbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa227",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 61.463,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68814,
    "c": 0.13849,
    "h": 111
  },
  "luminance": 0.33358
}

Semantic roles & 50–950 ramp

primary
#9FA227
secondary
#6664C1
accent
#43E447
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA227

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

Preview Lab → · Contrast checker → · Palette generator →

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