#9FA238#9FA238

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

Color values

HEX#9FA238
RGBrgb(159, 162, 56)
HSLhsl(62, 49%, 43%)
HSVhsv(62, 65%, 64%)
CMYKcmyk(1.9%, 0%, 65.4%, 36.5%)
CIE-LABlab(64.56, -14.82, 52.64)
CIE-LCHlch(64.56, 54.69, 105.73°)
OKLaboklab(68.94% -0.0454 0.119)
OKLCHoklch(68.94% 0.127 110.9)
XYZxyz(27.9331, 33.4978, 8.7349)
Luminance0.3350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA238 #3B38A2
analogous
#A27038 #9FA238 #6AA238
triadic
#9FA238 #389FA2 #A2389F
tetradic
#9FA238 #38A270 #3B38A2 #A2386A
square
#9FA238 #38A270 #3B38A2 #A2386A
split-complementary
#9FA238 #386AA2 #7038A2
monochromatic
#464719 #727528 #9FA238 #C1C453 #D1D381

Accessibility & contrast

On white

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

On black

7.70
#9FA238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA238
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA238#FFFFFF#000000##000000
##9FA2381.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B2A
Deuteranopia (green-blind)
#AF9E3F
Tritanopia (blue-blind)
#AA988C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9fa238;
/* rgb */ color: rgb(159, 162, 56);
/* oklch */ color: oklch(68.9% 0.127 110.9);
Tailwind
colors: {
  custom: {
    50: '#bebd74',
    500: '#9fa238',
    950: '#000000',
  },
}
SCSS
$custom: #9fa238;
$custom-light: #bebd74;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa238",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 61.698,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.68939,
    "c": 0.12731,
    "h": 110.9
  },
  "luminance": 0.33497
}

Semantic roles & 50–950 ramp

primary
#9FA238
secondary
#7B79BD
accent
#50D853
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#121209
muted
#81817B

Preview Lab

Preview with #9FA238

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

Preview Lab → · Contrast checker → · Palette generator →

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