#AFB751#AFB751

#AFB751 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.2% C 0.126 H 113.1°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#AFB751
RGBrgb(175, 183, 81)
HSLhsl(65, 41%, 52%)
HSVhsv(65, 56%, 72%)
CMYKcmyk(4.4%, 0%, 55.7%, 28.2%)
CIE-LABlab(71.94, -16.98, 49.98)
CIE-LCHlch(71.94, 52.79, 108.76°)
OKLaboklab(75.23% -0.0497 0.1163)
OKLCHoklch(75.23% 0.126 113.1)
XYZxyz(36.0987, 43.5757, 14.2923)
Luminance0.4358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB751 #5951B7
analogous
#B78C51 #AFB751 #7CB751
triadic
#AFB751 #51AFB7 #B751AF
tetradic
#AFB751 #51B78C #5951B7 #B7517C
square
#AFB751 #51B78C #5951B7 #B7517C
split-complementary
#AFB751 #517CB7 #8C51B7
monochromatic
#606429 #898F3B #AFB751 #C3C97C #D7DBA8

Accessibility & contrast

On white

2.16
#AFB751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#AFB751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB751
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB751#FFFFFF#000000##000000
##AFB7511.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF46
Deuteranopia (green-blind)
#C3B157
Tritanopia (blue-blind)
#B9ADA1
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb751;
/* rgb */ color: rgb(175, 183, 81);
/* oklch */ color: oklch(75.2% 0.126 113.1);
Tailwind
colors: {
  custom: {
    50: '#c9cc85',
    500: '#afb751',
    950: '#000000',
  },
}
SCSS
$custom: #afb751;
$custom-light: #c9cc85;
$custom-dark: #000000;
JSON
{
  "hex": "#afb751",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 81
  },
  "hsl": {
    "h": 64.706,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.75226,
    "c": 0.12649,
    "h": 113.1
  },
  "luminance": 0.43575
}

Semantic roles & 50–950 ramp

primary
#AFB751
secondary
#9F9CC8
accent
#57D160
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB751

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

Preview Lab → · Contrast checker → · Palette generator →

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