#ACC338#ACC338

#ACC338 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 77.5% C 0.161 H 118.6°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#ACC338
RGBrgb(172, 195, 56)
HSLhsl(70, 55%, 49%)
HSVhsv(70, 71%, 76%)
CMYKcmyk(11.8%, 0%, 71.3%, 23.5%)
CIE-LABlab(74.88, -25.84, 63.37)
CIE-LCHlch(74.88, 68.44, 112.19°)
OKLaboklab(77.46% -0.0768 0.1412)
OKLCHoklch(77.46% 0.161 118.6)
XYZxyz(37.2429, 48.0867, 11.0603)
Luminance0.4809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ACC338 #4F38C3
analogous
#C39538 #ACC338 #67C338
triadic
#ACC338 #38ACC3 #C338AC
tetradic
#ACC338 #38C395 #4F38C3 #C33867
square
#ACC338 #38C395 #4F38C3 #C33867
split-complementary
#ACC338 #3867C3 #9538C3
monochromatic
#58641D #82932A #ACC338 #C1D365 #D4E195

Accessibility & contrast

On white

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

On black

10.62
#ACC338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ACC338
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ACC338#FFFFFF#000000##000000
##ACC3381.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B81F
Deuteranopia (green-blind)
#CDB943
Tritanopia (blue-blind)
#B6B8A8
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #acc338;
/* rgb */ color: rgb(172, 195, 56);
/* oklch */ color: oklch(77.5% 0.161 118.6);
Tailwind
colors: {
  custom: {
    50: '#c8d578',
    500: '#acc338',
    950: '#000000',
  },
}
SCSS
$custom: #acc338;
$custom-light: #c8d578;
$custom-dark: #000000;
JSON
{
  "hex": "#acc338",
  "rgb": {
    "r": 172,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 69.928,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.7746,
    "c": 0.16074,
    "h": 118.6
  },
  "luminance": 0.48086
}

Semantic roles & 50–950 ramp

primary
#ACC338
secondary
#968BCC
accent
#49DF62
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#141409
muted
#82837B

Preview Lab

Preview with #ACC338

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

Preview Lab → · Contrast checker → · Palette generator →

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