#AFB451#AFB451

#AFB451 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.6% C 0.123 H 111.7°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#AFB451
RGBrgb(175, 180, 81)
HSLhsl(63, 40%, 51%)
HSVhsv(63, 55%, 71%)
CMYKcmyk(2.8%, 0%, 55%, 29.4%)
CIE-LABlab(71.11, -15.45, 49.04)
CIE-LCHlch(71.11, 51.41, 107.49°)
OKLaboklab(74.56% -0.0454 0.1143)
OKLCHoklch(74.56% 0.123 111.7)
XYZxyz(35.4865, 42.3513, 14.0882)
Luminance0.4235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB451 #5651B4
analogous
#B48751 #AFB451 #7DB451
triadic
#AFB451 #51AFB4 #B451AF
tetradic
#AFB451 #51B487 #5651B4 #B4517D
square
#AFB451 #51B487 #5651B4 #B4517D
split-complementary
#AFB451 #517DB4 #8751B4
monochromatic
#5E612A #888C3C #AFB451 #C3C67C #D6D9A7

Accessibility & contrast

On white

2.22
#AFB451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#AFB451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB451
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB451#FFFFFF#000000##000000
##AFB4511.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AD47
Deuteranopia (green-blind)
#C1AF57
Tritanopia (blue-blind)
#BAAA9E
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb451;
/* rgb */ color: rgb(175, 180, 81);
/* oklch */ color: oklch(74.6% 0.123 111.7);
Tailwind
colors: {
  custom: {
    50: '#c9ca85',
    500: '#afb451',
    950: '#000000',
  },
}
SCSS
$custom: #afb451;
$custom-light: #c9ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#afb451",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 81
  },
  "hsl": {
    "h": 63.03,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.74562,
    "c": 0.12296,
    "h": 111.7
  },
  "luminance": 0.42351
}

Semantic roles & 50–950 ramp

primary
#AFB451
secondary
#9D9BC6
accent
#58D05E
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB451

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

Preview Lab → · Contrast checker → · Palette generator →

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