#AFC248#AFC248

#AFC248 is a light, vivid yellow. Relative luminance 0.482; OKLCH L 77.6% C 0.147 H 117.5°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#AFC248
RGBrgb(175, 194, 72)
HSLhsl(69, 50%, 52%)
HSVhsv(69, 63%, 76%)
CMYKcmyk(9.8%, 0%, 62.9%, 23.9%)
CIE-LABlab(74.93, -23.14, 57.25)
CIE-LCHlch(74.93, 61.75, 112.01°)
OKLaboklab(77.59% -0.068 0.1306)
OKLCHoklch(77.59% 0.147 117.5)
XYZxyz(38.1414, 48.1658, 13.4173)
Luminance0.4817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC248 #5B48C2
analogous
#C29848 #AFC248 #72C248
triadic
#AFC248 #48AFC2 #C248AF
tetradic
#AFC248 #48C298 #5B48C2 #C24872
square
#AFC248 #48C298 #5B48C2 #C24872
split-complementary
#AFC248 #4872C2 #9848C2
monochromatic
#616C24 #8A9A33 #AFC248 #C3D176 #D7E1A4

Accessibility & contrast

On white

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

On black

10.63
#AFC248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC248
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC248#FFFFFF#000000##000000
##AFC2481.001.9710.6310.63
#FFFFFF1.971.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB839
Deuteranopia (green-blind)
#CCB950
Tritanopia (blue-blind)
#B9B8A9
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc248;
/* rgb */ color: rgb(175, 194, 72);
/* oklch */ color: oklch(77.6% 0.147 117.5);
Tailwind
colors: {
  custom: {
    50: '#cad481',
    500: '#afc248',
    950: '#000000',
  },
}
SCSS
$custom: #afc248;
$custom-light: #cad481;
$custom-dark: #000000;
JSON
{
  "hex": "#afc248",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 69.344,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.77591,
    "c": 0.14726,
    "h": 117.5
  },
  "luminance": 0.48165
}

Semantic roles & 50–950 ramp

primary
#AFC248
secondary
#A198CE
accent
#4EDA64
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140B
muted
#82827C

Preview Lab

Preview with #AFC248

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

Preview Lab → · Contrast checker → · Palette generator →

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