#AFC240#AFC240

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

Color values

HEX#AFC240
RGBrgb(175, 194, 64)
HSLhsl(69, 52%, 51%)
HSVhsv(69, 67%, 76%)
CMYKcmyk(9.8%, 0%, 67%, 23.9%)
CIE-LABlab(74.87, -23.66, 60.43)
CIE-LCHlch(74.87, 64.90, 111.38°)
OKLaboklab(77.52% -0.0702 0.1362)
OKLCHoklch(77.52% 0.153 117.3)
XYZxyz(37.8972, 48.0681, 12.1311)
Luminance0.4807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC240 #5340C2
analogous
#C29440 #AFC240 #6EC240
triadic
#AFC240 #40AFC2 #C240AF
tetradic
#AFC240 #40C294 #5340C2 #C2406E
square
#AFC240 #40C294 #5340C2 #C2406E
split-complementary
#AFC240 #406EC2 #9440C2
monochromatic
#5D6721 #869530 #AFC240 #C2D16E #D6E09D

Accessibility & contrast

On white

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

On black

10.61
#AFC240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC240
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC240#FFFFFF#000000##000000
##AFC2401.001.9810.6110.61
#FFFFFF1.981.0021.0021.00
#00000010.6121.001.001.00
##00000010.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB82D
Deuteranopia (green-blind)
#CDB94A
Tritanopia (blue-blind)
#B9B7A8
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc240;
/* rgb */ color: rgb(175, 194, 64);
/* oklch */ color: oklch(77.5% 0.153 117.3);
Tailwind
colors: {
  custom: {
    50: '#cad47c',
    500: '#afc240',
    950: '#000000',
  },
}
SCSS
$custom: #afc240;
$custom-light: #cad47c;
$custom-dark: #000000;
JSON
{
  "hex": "#afc240",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 68.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77522,
    "c": 0.15322,
    "h": 117.3
  },
  "luminance": 0.48068
}

Semantic roles & 50–950 ramp

primary
#AFC240
secondary
#9A92CC
accent
#4DDB62
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFC240

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

Preview Lab → · Contrast checker → · Palette generator →

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