#9CA228#9CA228

#9CA228 is a light, vivid yellow. Relative luminance 0.331; OKLCH L 68.6% C 0.139 H 112.4°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#9CA228
RGBrgb(156, 162, 40)
HSLhsl(63, 60%, 40%)
HSVhsv(63, 75%, 64%)
CMYKcmyk(3.7%, 0%, 75.3%, 36.5%)
CIE-LABlab(64.21, -17.00, 58.31)
CIE-LCHlch(64.21, 60.73, 106.25°)
OKLaboklab(68.57% -0.0528 0.1282)
OKLCHoklch(68.57% 0.139 112.4)
XYZxyz(27.0145, 33.0624, 6.9657)
Luminance0.3306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA228 #2E28A2
analogous
#A26B28 #9CA228 #5FA228
triadic
#9CA228 #289CA2 #A2289C
tetradic
#9CA228 #28A26B #2E28A2 #A2285F
square
#9CA228 #28A26B #2E28A2 #A2285F
split-complementary
#9CA228 #285FA2 #6B28A2
monochromatic
#3D4010 #6D711C #9CA228 #C7CE39 #D5DA6A

Accessibility & contrast

On white

2.76
#9CA228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#9CA228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CA228
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CA228#FFFFFF#000000##000000
##9CA2281.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A0C
Deuteranopia (green-blind)
#AF9D32
Tritanopia (blue-blind)
#A7988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9ca228;
/* rgb */ color: rgb(156, 162, 40);
/* oklch */ color: oklch(68.6% 0.139 112.4);
Tailwind
colors: {
  custom: {
    50: '#bdbd6c',
    500: '#9ca228',
    950: '#000000',
  },
}
SCSS
$custom: #9ca228;
$custom-light: #bdbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca228",
  "rgb": {
    "r": 156,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 62.951,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68565,
    "c": 0.13869,
    "h": 112.4
  },
  "luminance": 0.33062
}

Semantic roles & 50–950 ramp

primary
#9CA228
secondary
#6A65C1
accent
#44E44C
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9CA228

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

Preview Lab → · Contrast checker → · Palette generator →

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