#9FAB38#9FAB38

#9FAB38 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 71.0% C 0.137 H 115.1°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#9FAB38
RGBrgb(159, 171, 56)
HSLhsl(66, 51%, 45%)
HSVhsv(66, 67%, 67%)
CMYKcmyk(7%, 0%, 67.3%, 32.9%)
CIE-LABlab(67.11, -19.43, 55.28)
CIE-LCHlch(67.11, 58.59, 109.37°)
OKLaboklab(70.98% -0.0583 0.1245)
OKLCHoklch(70.98% 0.137 115.1)
XYZxyz(29.5755, 36.7828, 9.2824)
Luminance0.3678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB38 #4438AB
analogous
#AB7E38 #9FAB38 #66AB38
triadic
#9FAB38 #389FAB #AB389F
tetradic
#9FAB38 #38AB7E #4438AB #AB3866
square
#9FAB38 #38AB7E #4438AB #AB3866
split-complementary
#9FAB38 #3866AB #7E38AB
monochromatic
#494F1A #747D29 #9FAB38 #BDC858 #CFD786

Accessibility & contrast

On white

2.51
#9FAB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#9FAB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAB38
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAB38#FFFFFF#000000##000000
##9FAB381.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A327
Deuteranopia (green-blind)
#B6A440
Tritanopia (blue-blind)
#A9A194
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9fab38;
/* rgb */ color: rgb(159, 171, 56);
/* oklch */ color: oklch(71.0% 0.137 115.1);
Tailwind
colors: {
  custom: {
    50: '#bec375',
    500: '#9fab38',
    950: '#000000',
  },
}
SCSS
$custom: #9fab38;
$custom-light: #bec375;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab38",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 66.261,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70982,
    "c": 0.13746,
    "h": 115.1
  },
  "luminance": 0.36782
}

Semantic roles & 50–950 ramp

primary
#9FAB38
secondary
#857DC1
accent
#4EDA5C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121209
muted
#81817B

Preview Lab

Preview with #9FAB38

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

Preview Lab → · Contrast checker → · Palette generator →

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