#9FA126#9FA126

#9FA126 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.6% C 0.138 H 110.5°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#9FA126
RGBrgb(159, 161, 38)
HSLhsl(61, 62%, 39%)
HSVhsv(61, 76%, 63%)
CMYKcmyk(1.2%, 0%, 76.4%, 36.9%)
CIE-LABlab(64.16, -15.25, 59.02)
CIE-LCHlch(64.16, 60.95, 104.49°)
OKLaboklab(68.58% -0.0483 0.1293)
OKLCHoklch(68.58% 0.138 110.5)
XYZxyz(27.3938, 33.0014, 6.7602)
Luminance0.3300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA126 #2826A1
analogous
#A16626 #9FA126 #62A126
triadic
#9FA126 #269FA1 #A1269F
tetradic
#9FA126 #26A166 #2826A1 #A12662
square
#9FA126 #26A166 #2826A1 #A12662
split-complementary
#9FA126 #2662A1 #6626A1
monochromatic
#3D3E0F #6E6F1A #9FA126 #CDCF35 #D9DB66

Accessibility & contrast

On white

2.76
#9FA126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#9FA126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA126
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA126#FFFFFF#000000##000000
##9FA1261.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A06
Deuteranopia (green-blind)
#AF9D30
Tritanopia (blue-blind)
#AA978A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #9fa126;
/* rgb */ color: rgb(159, 161, 38);
/* oklch */ color: oklch(68.6% 0.138 110.5);
Tailwind
colors: {
  custom: {
    50: '#bfbc6b',
    500: '#9fa126',
    950: '#000000',
  },
}
SCSS
$custom: #9fa126;
$custom-light: #bfbc6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa126",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 38
  },
  "hsl": {
    "h": 60.976,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.68582,
    "c": 0.138,
    "h": 110.5
  },
  "luminance": 0.33001
}

Semantic roles & 50–950 ramp

primary
#9FA126
secondary
#6462C1
accent
#43E546
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA126

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

Preview Lab → · Contrast checker → · Palette generator →

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