#9DA227#9DA227

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

Color values

HEX#9DA227
RGBrgb(157, 162, 39)
HSLhsl(62, 61%, 39%)
HSVhsv(62, 76%, 64%)
CMYKcmyk(3.1%, 0%, 75.9%, 36.5%)
CIE-LABlab(64.29, -16.60, 58.74)
CIE-LCHlch(64.29, 61.04, 105.78°)
OKLaboklab(68.64% -0.0519 0.1289)
OKLCHoklch(68.64% 0.139 111.9)
XYZxyz(27.1921, 33.1559, 6.8864)
Luminance0.3316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DA227 #2C27A2
analogous
#A26A27 #9DA227 #60A227
triadic
#9DA227 #279DA2 #A2279D
tetradic
#9DA227 #27A26A #2C27A2 #A22760
square
#9DA227 #27A26A #2C27A2 #A22760
split-complementary
#9DA227 #2760A2 #6A27A2
monochromatic
#3D3F0F #6D711B #9DA227 #C9CF37 #D6DB69

Accessibility & contrast

On white

2.75
#9DA227 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#9DA227 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DA227
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DA227#FFFFFF#000000##000000
##9DA2271.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A09
Deuteranopia (green-blind)
#AF9D31
Tritanopia (blue-blind)
#A8988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9da227;
/* rgb */ color: rgb(157, 162, 39);
/* oklch */ color: oklch(68.6% 0.139 111.9);
Tailwind
colors: {
  custom: {
    50: '#bdbd6b',
    500: '#9da227',
    950: '#000000',
  },
}
SCSS
$custom: #9da227;
$custom-light: #bdbd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9da227",
  "rgb": {
    "r": 157,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 62.439,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68644,
    "c": 0.13899,
    "h": 111.9
  },
  "luminance": 0.33155
}

Semantic roles & 50–950 ramp

primary
#9DA227
secondary
#6864C1
accent
#43E44A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9DA227

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

Preview Lab → · Contrast checker → · Palette generator →

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