#AFC151#AFC151

#AFC151 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 77.5% C 0.139 H 117.4°. Best body text is #000000 at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#AFC151
RGBrgb(175, 193, 81)
HSLhsl(70, 47%, 54%)
HSVhsv(70, 58%, 76%)
CMYKcmyk(9.3%, 0%, 58%, 24.3%)
CIE-LABlab(74.73, -21.97, 53.13)
CIE-LCHlch(74.73, 57.49, 112.47°)
OKLaboklab(77.46% -0.0638 0.123)
OKLCHoklch(77.46% 0.139 117.4)
XYZxyz(38.2350, 47.8483, 15.0044)
Luminance0.4785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC151 #6351C1
analogous
#C19B51 #AFC151 #77C151
triadic
#AFC151 #51AFC1 #C151AF
tetradic
#AFC151 #51C19B #6351C1 #C15177
square
#AFC151 #51C19B #6351C1 #C15177
split-complementary
#AFC151 #5177C1 #9B51C1
monochromatic
#647028 #8D9D38 #AFC151 #C4D17E #D8E1AB

Accessibility & contrast

On white

1.99
#AFC151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.57
#AFC151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC151
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC151#FFFFFF#000000##000000
##AFC1511.001.9910.5710.57
#FFFFFF1.991.0021.0021.00
#00000010.5721.001.001.00
##00000010.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB845
Deuteranopia (green-blind)
#CBB958
Tritanopia (blue-blind)
#B9B7A9
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc151;
/* rgb */ color: rgb(175, 193, 81);
/* oklch */ color: oklch(77.5% 0.139 117.4);
Tailwind
colors: {
  custom: {
    50: '#c9d386',
    500: '#afc151',
    950: '#000000',
  },
}
SCSS
$custom: #afc151;
$custom-light: #c9d386;
$custom-dark: #000000;
JSON
{
  "hex": "#afc151",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 69.643,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.77456,
    "c": 0.13859,
    "h": 117.4
  },
  "luminance": 0.47848
}

Semantic roles & 50–950 ramp

primary
#AFC151
secondary
#A79FCF
accent
#51D766
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C

Preview Lab

Preview with #AFC151

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

Preview Lab → · Contrast checker → · Palette generator →

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