#AFC328#AFC328

#AFC328 is a light, vivid yellow. Relative luminance 0.483; OKLCH L 77.6% C 0.168 H 117.2°. Best body text is #000000 at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#AFC328
RGBrgb(175, 195, 40)
HSLhsl(68, 66%, 46%)
HSVhsv(68, 79%, 76%)
CMYKcmyk(10.3%, 0%, 79.5%, 23.5%)
CIE-LABlab(75.01, -25.32, 68.68)
CIE-LCHlch(75.01, 73.20, 110.24°)
OKLaboklab(77.6% -0.0769 0.1496)
OKLCHoklch(77.6% 0.168 117.2)
XYZxyz(37.5783, 48.2978, 9.3499)
Luminance0.4830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC328 #3C28C3
analogous
#C38928 #AFC328 #61C328
triadic
#AFC328 #28AFC3 #C328AF
tetradic
#AFC328 #28C389 #3C28C3 #C32861
square
#AFC328 #28C389 #3C28C3 #C32861
split-complementary
#AFC328 #2861C3 #8928C3
monochromatic
#545D13 #81901E #AFC328 #C8DB4E #D8E580

Accessibility & contrast

On white

1.97
#AFC328 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.66
#AFC328 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC328
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC328#FFFFFF#000000##000000
##AFC3281.001.9710.6610.66
#FFFFFF1.971.0021.0021.00
#00000010.6621.001.001.00
##00000010.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B800
Deuteranopia (green-blind)
#CFB938
Tritanopia (blue-blind)
#BAB8A7
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #afc328;
/* rgb */ color: rgb(175, 195, 40);
/* oklch */ color: oklch(77.6% 0.168 117.2);
Tailwind
colors: {
  custom: {
    50: '#cbd570',
    500: '#afc328',
    950: '#000000',
  },
}
SCSS
$custom: #afc328;
$custom-light: #cbd570;
$custom-dark: #000000;
JSON
{
  "hex": "#afc328",
  "rgb": {
    "r": 175,
    "g": 195,
    "b": 40
  },
  "hsl": {
    "h": 67.742,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.77595,
    "c": 0.1682,
    "h": 117.2
  },
  "luminance": 0.48297
}

Semantic roles & 50–950 ramp

primary
#AFC328
secondary
#8479CE
accent
#3FE955
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141408
muted
#82837B

Preview Lab

Preview with #AFC328

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

Preview Lab → · Contrast checker → · Palette generator →

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