#9FB338#9FB338

#9FB338 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 72.8% C 0.147 H 118.2°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#9FB338
RGBrgb(159, 179, 56)
HSLhsl(70, 52%, 46%)
HSVhsv(70, 69%, 70%)
CMYKcmyk(11.2%, 0%, 68.7%, 29.8%)
CIE-LABlab(69.40, -23.42, 57.60)
CIE-LCHlch(69.40, 62.18, 112.13°)
OKLaboklab(72.81% -0.0694 0.1294)
OKLCHoklch(72.81% 0.147 118.2)
XYZxyz(31.1326, 39.8969, 9.8014)
Luminance0.3990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB338 #4C38B3
analogous
#B38938 #9FB338 #61B338
triadic
#9FB338 #389FB3 #B3389F
tetradic
#9FB338 #38B389 #4C38B3 #B33861
square
#9FB338 #38B389 #4C38B3 #B33861
split-complementary
#9FB338 #3861B3 #8938B3
monochromatic
#4C561B #768429 #9FB338 #BACC5C #CEDB8B

Accessibility & contrast

On white

2.34
#9FB338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#9FB338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB338
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB338#FFFFFF#000000##000000
##9FB3381.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA925
Deuteranopia (green-blind)
#BDAA41
Tritanopia (blue-blind)
#A8A99A
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9fb338;
/* rgb */ color: rgb(159, 179, 56);
/* oklch */ color: oklch(72.8% 0.147 118.2);
Tailwind
colors: {
  custom: {
    50: '#bec976',
    500: '#9fb338',
    950: '#000000',
  },
}
SCSS
$custom: #9fb338;
$custom-light: #bec976;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb338",
  "rgb": {
    "r": 159,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 69.756,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.72814,
    "c": 0.14682,
    "h": 118.2
  },
  "luminance": 0.39897
}

Semantic roles & 50–950 ramp

primary
#9FB338
secondary
#8D82C5
accent
#4CDC63
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121309
muted
#81827B

Preview Lab

Preview with #9FB338

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

Preview Lab → · Contrast checker → · Palette generator →

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