#9CA338#9CA338

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

Color values

HEX#9CA338
RGBrgb(156, 163, 56)
HSLhsl(64, 49%, 43%)
HSVhsv(64, 66%, 64%)
CMYKcmyk(4.3%, 0%, 65.6%, 36.1%)
CIE-LABlab(64.60, -16.64, 52.61)
CIE-LCHlch(64.60, 55.18, 107.55°)
OKLaboklab(68.91% -0.0503 0.119)
OKLCHoklch(68.91% 0.129 112.9)
XYZxyz(27.5221, 33.5484, 8.7663)
Luminance0.3355 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA338 #3F38A3
analogous
#A37438 #9CA338 #67A338
triadic
#9CA338 #389CA3 #A3389C
tetradic
#9CA338 #38A374 #3F38A3 #A33867
square
#9CA338 #38A374 #3F38A3 #A33867
split-complementary
#9CA338 #3867A3 #7438A3
monochromatic
#454819 #707528 #9CA338 #BDC454 #CED482

Accessibility & contrast

On white

2.72
#9CA338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#9CA338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CA338
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CA338#FFFFFF#000000##000000
##9CA3381.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9ca338;
/* rgb */ color: rgb(156, 163, 56);
/* oklch */ color: oklch(68.9% 0.129 112.9);
Tailwind
colors: {
  custom: {
    50: '#bcbe74',
    500: '#9ca338',
    950: '#000000',
  },
}
SCSS
$custom: #9ca338;
$custom-light: #bcbe74;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca338",
  "rgb": {
    "r": 156,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 63.925,
    "s": 48.858,
    "l": 42.941
  },
  "oklch": {
    "l": 0.68912,
    "c": 0.12915,
    "h": 112.9
  },
  "luminance": 0.33548
}

Semantic roles & 50–950 ramp

primary
#9CA338
secondary
#7E79BD
accent
#4FD858
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121209
muted
#81817B

Preview Lab

Preview with #9CA338

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

Preview Lab → · Contrast checker → · Palette generator →

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