#AFB351#AFB351

#AFB351 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.3% C 0.122 H 111.2°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#AFB351
RGBrgb(175, 179, 81)
HSLhsl(62, 39%, 51%)
HSVhsv(62, 55%, 70%)
CMYKcmyk(2.2%, 0%, 54.7%, 29.8%)
CIE-LABlab(70.84, -14.94, 48.72)
CIE-LCHlch(70.84, 50.96, 107.05°)
OKLaboklab(74.34% -0.044 0.1136)
OKLCHoklch(74.34% 0.122 111.2)
XYZxyz(35.2853, 41.9490, 14.0212)
Luminance0.4195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB351 #5551B3
analogous
#B38651 #AFB351 #7EB351
triadic
#AFB351 #51AFB3 #B351AF
tetradic
#AFB351 #51B386 #5551B3 #B3517E
square
#AFB351 #51B386 #5551B3 #B3517E
split-complementary
#AFB351 #517EB3 #8651B3
monochromatic
#5E602A #878A3C #AFB351 #C3C67C #D6D8A6

Accessibility & contrast

On white

2.24
#AFB351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#AFB351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB351
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB351#FFFFFF#000000##000000
##AFB3511.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAC47
Deuteranopia (green-blind)
#C0AF56
Tritanopia (blue-blind)
#BAA99D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb351;
/* rgb */ color: rgb(175, 179, 81);
/* oklch */ color: oklch(74.3% 0.122 111.2);
Tailwind
colors: {
  custom: {
    50: '#c9c985',
    500: '#afb351',
    950: '#000000',
  },
}
SCSS
$custom: #afb351;
$custom-light: #c9c985;
$custom-dark: #000000;
JSON
{
  "hex": "#afb351",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 81
  },
  "hsl": {
    "h": 62.449,
    "s": 39.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.74341,
    "c": 0.1218,
    "h": 111.2
  },
  "luminance": 0.41948
}

Semantic roles & 50–950 ramp

primary
#AFB351
secondary
#9C9AC6
accent
#59CF5E
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB351

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

Preview Lab → · Contrast checker → · Palette generator →

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