#AFC540#AFC540

#AFC540 is a light, vivid yellow. Relative luminance 0.494; OKLCH L 78.2% C 0.157 H 118.3°. Best body text is #000000 at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#AFC540
RGBrgb(175, 197, 64)
HSLhsl(70, 53%, 51%)
HSVhsv(70, 68%, 77%)
CMYKcmyk(11.2%, 0%, 67.5%, 22.7%)
CIE-LABlab(75.71, -25.12, 61.29)
CIE-LCHlch(75.71, 66.24, 112.29°)
OKLaboklab(78.2% -0.0743 0.138)
OKLCHoklch(78.2% 0.157 118.3)
XYZxyz(38.5716, 49.4170, 12.3560)
Luminance0.4942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC540 #5640C5
analogous
#C59840 #AFC540 #6CC540
triadic
#AFC540 #40AFC5 #C540AF
tetradic
#AFC540 #40C598 #5640C5 #C5406C
square
#AFC540 #40C598 #5640C5 #C5406C
split-complementary
#AFC540 #406CC5 #9840C5
monochromatic
#5E6A20 #88992F #AFC540 #C3D36F #D6E29E

Accessibility & contrast

On white

1.93
#AFC540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.88
#AFC540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC540
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC540#FFFFFF#000000##000000
##AFC5401.001.9310.8810.88
#FFFFFF1.931.0021.0021.00
#00000010.8821.001.001.00
##00000010.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA2C
Deuteranopia (green-blind)
#CFBB4A
Tritanopia (blue-blind)
#B9BAAA
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #afc540;
/* rgb */ color: rgb(175, 197, 64);
/* oklch */ color: oklch(78.2% 0.157 118.3);
Tailwind
colors: {
  custom: {
    50: '#cad67c',
    500: '#afc540',
    950: '#000000',
  },
}
SCSS
$custom: #afc540;
$custom-light: #cad67c;
$custom-dark: #000000;
JSON
{
  "hex": "#afc540",
  "rgb": {
    "r": 175,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 69.925,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.78199,
    "c": 0.15671,
    "h": 118.3
  },
  "luminance": 0.49417
}

Semantic roles & 50–950 ramp

primary
#AFC540
secondary
#9D93CE
accent
#4BDD63
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C

Preview Lab

Preview with #AFC540

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

Preview Lab → · Contrast checker → · Palette generator →

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