#AFBF48#AFBF48

#AFBF48 is a light, vivid yellow. Relative luminance 0.468; OKLCH L 76.9% C 0.144 H 116.4°. Best body text is #000000 at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#AFBF48
RGBrgb(175, 191, 72)
HSLhsl(68, 48%, 52%)
HSVhsv(68, 62%, 75%)
CMYKcmyk(8.4%, 0%, 62.3%, 25.1%)
CIE-LABlab(74.09, -21.66, 56.35)
CIE-LCHlch(74.09, 60.37, 111.03°)
OKLaboklab(76.92% -0.0638 0.1287)
OKLCHoklch(76.92% 0.144 116.4)
XYZxyz(37.4805, 46.8439, 13.1970)
Luminance0.4684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF48 #5848BF
analogous
#BF9448 #AFBF48 #74BF48
triadic
#AFBF48 #48AFBF #BF48AF
tetradic
#AFBF48 #48BF94 #5848BF #BF4874
square
#AFBF48 #48BF94 #5848BF #BF4874
split-complementary
#AFBF48 #4874BF #9448BF
monochromatic
#5F6824 #889634 #AFBF48 #C3CF75 #D7DFA3

Accessibility & contrast

On white

2.03
#AFBF48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.37
#AFBF48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF48
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF48#FFFFFF#000000##000000
##AFBF481.002.0310.3710.37
#FFFFFF2.031.0021.0021.00
#00000010.3721.001.001.00
##00000010.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB639
Deuteranopia (green-blind)
#CAB750
Tritanopia (blue-blind)
#B9B5A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #afbf48;
/* rgb */ color: rgb(175, 191, 72);
/* oklch */ color: oklch(76.9% 0.144 116.4);
Tailwind
colors: {
  custom: {
    50: '#cad280',
    500: '#afbf48',
    950: '#000000',
  },
}
SCSS
$custom: #afbf48;
$custom-light: #cad280;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf48",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 72
  },
  "hsl": {
    "h": 68.067,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.76917,
    "c": 0.14369,
    "h": 116.4
  },
  "luminance": 0.46843
}

Semantic roles & 50–950 ramp

primary
#AFBF48
secondary
#9E97CC
accent
#50D862
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140B
muted
#82827C

Preview Lab

Preview with #AFBF48

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

Preview Lab → · Contrast checker → · Palette generator →

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