#9FA226#9FA226

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

Color values

HEX#9FA226
RGBrgb(159, 162, 38)
HSLhsl(61, 62%, 39%)
HSVhsv(61, 77%, 64%)
CMYKcmyk(1.9%, 0%, 76.5%, 36.5%)
CIE-LABlab(64.45, -15.77, 59.28)
CIE-LCHlch(64.45, 61.34, 104.90°)
OKLaboklab(68.81% -0.0498 0.1298)
OKLCHoklch(68.81% 0.139 111)
XYZxyz(27.5692, 33.3523, 6.8187)
Luminance0.3335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA226 #2926A2
analogous
#A26726 #9FA226 #61A226
triadic
#9FA226 #269FA2 #A2269F
tetradic
#9FA226 #26A267 #2926A2 #A22661
square
#9FA226 #26A267 #2926A2 #A22661
split-complementary
#9FA226 #2661A2 #6726A2
monochromatic
#3E3F0F #6E701A #9FA226 #CCD035 #D9DB67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA226#FFFFFF#000000##000000
##9FA2261.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)
#AF9B05
Deuteranopia (green-blind)
#B09E31
Tritanopia (blue-blind)
#AA988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa226;
/* rgb */ color: rgb(159, 162, 38);
/* oklch */ color: oklch(68.8% 0.139 111.0);
Tailwind
colors: {
  custom: {
    50: '#bfbd6b',
    500: '#9fa226',
    950: '#000000',
  },
}
SCSS
$custom: #9fa226;
$custom-light: #bfbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa226",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 61.452,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.68809,
    "c": 0.13902,
    "h": 111
  },
  "luminance": 0.33352
}

Semantic roles & 50–950 ramp

primary
#9FA226
secondary
#6563C1
accent
#43E547
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA226

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

Preview Lab → · Contrast checker → · Palette generator →

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