#ACC231#ACC231

#ACC231 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.2% C 0.164 H 118.1°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#ACC231
RGBrgb(172, 194, 49)
HSLhsl(69, 60%, 48%)
HSVhsv(69, 75%, 76%)
CMYKcmyk(11.3%, 0%, 74.7%, 23.9%)
CIE-LABlab(74.56, -25.71, 65.46)
CIE-LCHlch(74.56, 70.33, 111.44°)
OKLaboklab(77.19% -0.0771 0.1444)
OKLCHoklch(77.19% 0.164 118.1)
XYZxyz(36.8603, 47.5763, 10.1465)
Luminance0.4758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ACC231 #4731C2
analogous
#C28F31 #ACC231 #64C231
triadic
#ACC231 #31ACC2 #C231AC
tetradic
#ACC231 #31C28F #4731C2 #C23164
square
#ACC231 #31C28F #4731C2 #C23164
split-complementary
#ACC231 #3164C2 #8F31C2
monochromatic
#556018 #819125 #ACC231 #C3D65B #D5E28C

Accessibility & contrast

On white

2.00
#ACC231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.52
#ACC231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ACC231
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ACC231#FFFFFF#000000##000000
##ACC2311.002.0010.5210.52
#FFFFFF2.001.0021.0021.00
#00000010.5221.001.001.00
##00000010.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB70F
Deuteranopia (green-blind)
#CDB83E
Tritanopia (blue-blind)
#B7B7A7
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #acc231;
/* rgb */ color: rgb(172, 194, 49);
/* oklch */ color: oklch(77.2% 0.164 118.1);
Tailwind
colors: {
  custom: {
    50: '#c8d474',
    500: '#acc231',
    950: '#000000',
  },
}
SCSS
$custom: #acc231;
$custom-light: #c8d474;
$custom-dark: #000000;
JSON
{
  "hex": "#acc231",
  "rgb": {
    "r": 172,
    "g": 194,
    "b": 49
  },
  "hsl": {
    "h": 69.103,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.77188,
    "c": 0.16369,
    "h": 118.1
  },
  "luminance": 0.47576
}

Semantic roles & 50–950 ramp

primary
#ACC231
secondary
#8E83CC
accent
#45E35D
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B

Preview Lab

Preview with #ACC231

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

Preview Lab → · Contrast checker → · Palette generator →

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