#9FA231#9FA231

#9FA231 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.9% C 0.132 H 110.9°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#9FA231
RGBrgb(159, 162, 49)
HSLhsl(62, 54%, 41%)
HSVhsv(62, 70%, 64%)
CMYKcmyk(1.9%, 0%, 69.8%, 36.5%)
CIE-LABlab(64.51, -15.24, 55.41)
CIE-LCHlch(64.51, 57.47, 105.37°)
OKLaboklab(68.88% -0.0472 0.1236)
OKLCHoklch(68.88% 0.132 110.9)
XYZxyz(27.7737, 33.4341, 7.8955)
Luminance0.3343 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA231 #3431A2
analogous
#A26D31 #9FA231 #67A231
triadic
#9FA231 #319FA2 #A2319F
tetradic
#9FA231 #31A26D #3431A2 #A23167
square
#9FA231 #31A26D #3431A2 #A23167
split-complementary
#9FA231 #3167A2 #6D31A2
monochromatic
#434415 #717323 #9FA231 #C4C848 #D3D677

Accessibility & contrast

On white

2.73
#9FA231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#9FA231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA231
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA231#FFFFFF#000000##000000
##9FA2311.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1F
Deuteranopia (green-blind)
#AF9E39
Tritanopia (blue-blind)
#AA988C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa231;
/* rgb */ color: rgb(159, 162, 49);
/* oklch */ color: oklch(68.9% 0.132 110.9);
Tailwind
colors: {
  custom: {
    50: '#bebd70',
    500: '#9fa231',
    950: '#000000',
  },
}
SCSS
$custom: #9fa231;
$custom-light: #bebd70;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa231",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 61.593,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.68882,
    "c": 0.13235,
    "h": 110.9
  },
  "luminance": 0.33433
}

Semantic roles & 50–950 ramp

primary
#9FA231
secondary
#7371BE
accent
#4BDD4F
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA231

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

Preview Lab → · Contrast checker → · Palette generator →

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