#9FA338#9FA338

#9FA338 is a light, vivid yellow. Relative luminance 0.339; OKLCH L 69.2% C 0.128 H 111.4°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#9FA338
RGBrgb(159, 163, 56)
HSLhsl(62, 49%, 43%)
HSVhsv(62, 66%, 64%)
CMYKcmyk(2.5%, 0%, 65.6%, 36.1%)
CIE-LABlab(64.84, -15.34, 52.94)
CIE-LCHlch(64.84, 55.11, 106.16°)
OKLaboklab(69.16% -0.0468 0.1196)
OKLCHoklch(69.16% 0.128 111.4)
XYZxyz(28.1099, 33.8515, 8.7938)
Luminance0.3385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA338 #3C38A3
analogous
#A37138 #9FA338 #69A338
triadic
#9FA338 #389FA3 #A3389F
tetradic
#9FA338 #38A371 #3C38A3 #A33869
square
#9FA338 #38A371 #3C38A3 #A33869
split-complementary
#9FA338 #3869A3 #7138A3
monochromatic
#464819 #737528 #9FA338 #C0C454 #D1D482

Accessibility & contrast

On white

2.70
#9FA338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#9FA338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA338
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA338#FFFFFF#000000##000000
##9FA3381.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C29
Deuteranopia (green-blind)
#B09F3F
Tritanopia (blue-blind)
#AA998D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9fa338;
/* rgb */ color: rgb(159, 163, 56);
/* oklch */ color: oklch(69.2% 0.128 111.4);
Tailwind
colors: {
  custom: {
    50: '#bebe74',
    500: '#9fa338',
    950: '#000000',
  },
}
SCSS
$custom: #9fa338;
$custom-light: #bebe74;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa338",
  "rgb": {
    "r": 159,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 62.243,
    "s": 48.858,
    "l": 42.941
  },
  "oklch": {
    "l": 0.69165,
    "c": 0.12841,
    "h": 111.4
  },
  "luminance": 0.33851
}

Semantic roles & 50–950 ramp

primary
#9FA338
secondary
#7C79BD
accent
#4FD855
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#121209
muted
#81817B

Preview Lab

Preview with #9FA338

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

Preview Lab → · Contrast checker → · Palette generator →

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