#AFC052#AFC052

#AFC052 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.2% C 0.136 H 117.1°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#AFC052
RGBrgb(175, 192, 82)
HSLhsl(69, 47%, 54%)
HSVhsv(69, 57%, 75%)
CMYKcmyk(8.9%, 0%, 57.3%, 24.7%)
CIE-LABlab(74.46, -21.40, 52.37)
CIE-LCHlch(74.46, 56.58, 112.22°)
OKLaboklab(77.24% -0.0621 0.1215)
OKLCHoklch(77.24% 0.136 117.1)
XYZxyz(38.0525, 47.4228, 15.1299)
Luminance0.4742 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC052 #6352C0
analogous
#C09A52 #AFC052 #78C052
triadic
#AFC052 #52AFC0 #C052AF
tetradic
#AFC052 #52C09A #6352C0 #C05278
square
#AFC052 #52C09A #6352C0 #C05278
split-complementary
#AFC052 #5278C0 #9A52C0
monochromatic
#646F28 #8D9C39 #AFC052 #C4D07F #D8E1AC

Accessibility & contrast

On white

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

On black

10.48
#AFC052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC052
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC052#FFFFFF#000000##000000
##AFC0521.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB746
Deuteranopia (green-blind)
#CAB859
Tritanopia (blue-blind)
#B9B6A8
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc052;
/* rgb */ color: rgb(175, 192, 82);
/* oklch */ color: oklch(77.2% 0.136 117.1);
Tailwind
colors: {
  custom: {
    50: '#c9d386',
    500: '#afc052',
    950: '#000000',
  },
}
SCSS
$custom: #afc052;
$custom-light: #c9d386;
$custom-dark: #000000;
JSON
{
  "hex": "#afc052",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 69.273,
    "s": 46.61,
    "l": 53.725
  },
  "oklch": {
    "l": 0.77243,
    "c": 0.13649,
    "h": 117.1
  },
  "luminance": 0.47422
}

Semantic roles & 50–950 ramp

primary
#AFC052
secondary
#A79FCE
accent
#52D666
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFC052

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

Preview Lab → · Contrast checker → · Palette generator →

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