#AFB548#AFB548

#AFB548 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.7% C 0.132 H 112.1°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#AFB548
RGBrgb(175, 181, 72)
HSLhsl(63, 43%, 50%)
HSVhsv(63, 60%, 71%)
CMYKcmyk(3.3%, 0%, 60.2%, 29%)
CIE-LABlab(71.30, -16.65, 53.33)
CIE-LCHlch(71.30, 55.87, 107.34°)
OKLaboklab(74.69% -0.0498 0.1223)
OKLCHoklch(74.69% 0.132 112.1)
XYZxyz(35.3737, 42.6303, 12.4947)
Luminance0.4263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB548 #4E48B5
analogous
#B58548 #AFB548 #78B548
triadic
#AFB548 #48AFB5 #B548AF
tetradic
#AFB548 #48B585 #4E48B5 #B54878
square
#AFB548 #48B585 #4E48B5 #B54878
split-complementary
#AFB548 #4878B5 #8548B5
monochromatic
#5A5D25 #858937 #AFB548 #C3C773 #D6D99F

Accessibility & contrast

On white

2.20
#AFB548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#AFB548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB548
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB548#FFFFFF#000000##000000
##AFB5481.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD3B
Deuteranopia (green-blind)
#C2B04F
Tritanopia (blue-blind)
#BAAB9E
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb548;
/* rgb */ color: rgb(175, 181, 72);
/* oklch */ color: oklch(74.7% 0.132 112.1);
Tailwind
colors: {
  custom: {
    50: '#c9cb80',
    500: '#afb548',
    950: '#000000',
  },
}
SCSS
$custom: #afb548;
$custom-light: #c9cb80;
$custom-dark: #000000;
JSON
{
  "hex": "#afb548",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 72
  },
  "hsl": {
    "h": 63.303,
    "s": 43.083,
    "l": 49.608
  },
  "oklch": {
    "l": 0.74686,
    "c": 0.13208,
    "h": 112.1
  },
  "luminance": 0.4263
}

Semantic roles & 50–950 ramp

primary
#AFB548
secondary
#9693C5
accent
#55D35C
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C

Preview Lab

Preview with #AFB548

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

Preview Lab → · Contrast checker → · Palette generator →

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