#9CA227#9CA227

#9CA227 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#9CA227
RGBrgb(156, 162, 39)
HSLhsl(63, 61%, 39%)
HSVhsv(63, 76%, 64%)
CMYKcmyk(3.7%, 0%, 75.9%, 36.5%)
CIE-LABlab(64.21, -17.04, 58.64)
CIE-LCHlch(64.21, 61.06, 106.20°)
OKLaboklab(68.56% -0.0531 0.1288)
OKLCHoklch(68.56% 0.139 112.4)
XYZxyz(26.9977, 33.0557, 6.8773)
Luminance0.3306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CA227 #2D27A2
analogous
#A26B27 #9CA227 #5FA227
triadic
#9CA227 #279CA2 #A2279C
tetradic
#9CA227 #27A26B #2D27A2 #A2275F
square
#9CA227 #27A26B #2D27A2 #A2275F
split-complementary
#9CA227 #275FA2 #6B27A2
monochromatic
#3D3F0F #6D711B #9CA227 #C8CF37 #D5DB69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9CA227#FFFFFF#000000##000000
##9CA2271.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)
#AF9A09
Deuteranopia (green-blind)
#AF9D31
Tritanopia (blue-blind)
#A7988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9ca227;
/* rgb */ color: rgb(156, 162, 39);
/* oklch */ color: oklch(68.6% 0.139 112.4);
Tailwind
colors: {
  custom: {
    50: '#bdbd6b',
    500: '#9ca227',
    950: '#000000',
  },
}
SCSS
$custom: #9ca227;
$custom-light: #bdbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9ca227",
  "rgb": {
    "r": 156,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 62.927,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68559,
    "c": 0.13925,
    "h": 112.4
  },
  "luminance": 0.33055
}

Semantic roles & 50–950 ramp

primary
#9CA227
secondary
#6864C1
accent
#43E44B
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9CA227

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

Preview Lab → · Contrast checker → · Palette generator →

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