#9DA228#9DA228

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

Color values

HEX#9DA228
RGBrgb(157, 162, 40)
HSLhsl(62, 60%, 40%)
HSVhsv(62, 75%, 64%)
CMYKcmyk(3.1%, 0%, 75.3%, 36.5%)
CIE-LABlab(64.29, -16.56, 58.41)
CIE-LCHlch(64.29, 60.71, 105.83°)
OKLaboklab(68.65% -0.0517 0.1284)
OKLCHoklch(68.65% 0.138 111.9)
XYZxyz(27.2089, 33.1626, 6.9748)
Luminance0.3316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DA228 #2D28A2
analogous
#A26A28 #9DA228 #60A228
triadic
#9DA228 #289DA2 #A2289D
tetradic
#9DA228 #28A26A #2D28A2 #A22860
square
#9DA228 #28A26A #2D28A2 #A22860
split-complementary
#9DA228 #2860A2 #6A28A2
monochromatic
#3E4010 #6D711C #9DA228 #C8CE39 #D6DA6A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9DA228#FFFFFF#000000##000000
##9DA2281.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)
#AF9A0C
Deuteranopia (green-blind)
#AF9D32
Tritanopia (blue-blind)
#A8988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9da228;
/* rgb */ color: rgb(157, 162, 40);
/* oklch */ color: oklch(68.7% 0.138 111.9);
Tailwind
colors: {
  custom: {
    50: '#bdbd6c',
    500: '#9da228',
    950: '#000000',
  },
}
SCSS
$custom: #9da228;
$custom-light: #bdbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9da228",
  "rgb": {
    "r": 157,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 62.459,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.6865,
    "c": 0.13843,
    "h": 111.9
  },
  "luminance": 0.33162
}

Semantic roles & 50–950 ramp

primary
#9DA228
secondary
#6965C1
accent
#44E44B
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #9DA228

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

Preview Lab → · Contrast checker → · Palette generator →

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