#AFC045#AFC045

#AFC045 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.1% C 0.147 H 116.7°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#AFC045
RGBrgb(175, 192, 69)
HSLhsl(68, 49%, 51%)
HSVhsv(68, 64%, 75%)
CMYKcmyk(8.9%, 0%, 64.1%, 24.7%)
CIE-LABlab(74.35, -22.36, 57.88)
CIE-LCHlch(74.35, 62.05, 111.12°)
OKLaboklab(77.11% -0.0661 0.1315)
OKLCHoklch(77.11% 0.147 116.7)
XYZxyz(37.6038, 47.2434, 12.7670)
Luminance0.4724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC045 #5645C0
analogous
#C09345 #AFC045 #71C045
triadic
#AFC045 #45AFC0 #C045AF
tetradic
#AFC045 #45C093 #5645C0 #C04571
square
#AFC045 #45C093 #5645C0 #C04571
split-complementary
#AFC045 #4571C0 #9345C0
monochromatic
#5E6823 #889533 #AFC045 #C3CF73 #D6DFA0

Accessibility & contrast

On white

2.01
#AFC045 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#AFC045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC045
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC045#FFFFFF#000000##000000
##AFC0451.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB635
Deuteranopia (green-blind)
#CBB84E
Tritanopia (blue-blind)
#B9B6A7
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc045;
/* rgb */ color: rgb(175, 192, 69);
/* oklch */ color: oklch(77.1% 0.147 116.7);
Tailwind
colors: {
  custom: {
    50: '#cad37f',
    500: '#afc045',
    950: '#000000',
  },
}
SCSS
$custom: #afc045;
$custom-light: #cad37f;
$custom-dark: #000000;
JSON
{
  "hex": "#afc045",
  "rgb": {
    "r": 175,
    "g": 192,
    "b": 69
  },
  "hsl": {
    "h": 68.293,
    "s": 49.398,
    "l": 51.176
  },
  "oklch": {
    "l": 0.77114,
    "c": 0.14721,
    "h": 116.7
  },
  "luminance": 0.47243
}

Semantic roles & 50–950 ramp

primary
#AFC045
secondary
#9D95CC
accent
#4FD962
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFC045

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

Preview Lab → · Contrast checker → · Palette generator →

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