#ACC331#ACC331

#ACC331 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 77.4% C 0.165 H 118.4°. Best body text is #000000 at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#ACC331
RGBrgb(172, 195, 49)
HSLhsl(69, 60%, 48%)
HSVhsv(69, 75%, 76%)
CMYKcmyk(11.8%, 0%, 74.9%, 23.5%)
CIE-LABlab(74.84, -26.19, 65.72)
CIE-LCHlch(74.84, 70.75, 111.73°)
OKLaboklab(77.42% -0.0784 0.145)
OKLCHoklch(77.42% 0.165 118.4)
XYZxyz(37.0836, 48.0229, 10.2209)
Luminance0.4802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ACC331 #4831C3
analogous
#C39131 #ACC331 #63C331
triadic
#ACC331 #31ACC3 #C331AC
tetradic
#ACC331 #31C391 #4831C3 #C33163
square
#ACC331 #31C391 #4831C3 #C33163
split-complementary
#ACC331 #3163C3 #9131C3
monochromatic
#566118 #819225 #ACC331 #C3D65B #D5E28C

Accessibility & contrast

On white

1.98
#ACC331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.60
#ACC331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ACC331
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ACC331#FFFFFF#000000##000000
##ACC3311.001.9810.6010.60
#FFFFFF1.981.0021.0021.00
#00000010.6021.001.001.00
##00000010.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B80E
Deuteranopia (green-blind)
#CEB93E
Tritanopia (blue-blind)
#B6B8A7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #acc331;
/* rgb */ color: rgb(172, 195, 49);
/* oklch */ color: oklch(77.4% 0.165 118.4);
Tailwind
colors: {
  custom: {
    50: '#c8d574',
    500: '#acc331',
    950: '#000000',
  },
}
SCSS
$custom: #acc331;
$custom-light: #c8d574;
$custom-dark: #000000;
JSON
{
  "hex": "#acc331",
  "rgb": {
    "r": 172,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 69.452,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.77415,
    "c": 0.16482,
    "h": 118.4
  },
  "luminance": 0.48023
}

Semantic roles & 50–950 ramp

primary
#ACC331
secondary
#8F83CC
accent
#45E35E
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B

Preview Lab

Preview with #ACC331

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

Preview Lab → · Contrast checker → · Palette generator →

#ACC331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva