#AFAA48#AFAA48

#AFAA48 is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.3% C 0.120 H 106.3°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFAA48
RGBrgb(175, 170, 72)
HSLhsl(57, 42%, 48%)
HSVhsv(57, 59%, 69%)
CMYKcmyk(0%, 2.9%, 58.9%, 31.4%)
CIE-LABlab(68.26, -10.99, 49.99)
CIE-LCHlch(68.26, 51.18, 102.40°)
OKLaboklab(72.26% -0.0337 0.1152)
OKLCHoklch(72.26% 0.12 106.3)
XYZxyz(33.2247, 38.3323, 11.7784)
Luminance0.3833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA48 #484DAF
analogous
#AF7648 #AFAA48 #80AF48
triadic
#AFAA48 #48AFAA #AA48AF
tetradic
#AFAA48 #48AF76 #484DAF #AF4880
square
#AFAA48 #48AF76 #484DAF #AF4880
split-complementary
#AFAA48 #4880AF #7648AF
monochromatic
#585624 #848036 #AFAA48 #C4C070 #D6D39B

Accessibility & contrast

On white

2.42
#AFAA48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#AFAA48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA48
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA48#FFFFFF#000000##000000
##AFAA481.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A43D
Deuteranopia (green-blind)
#BAA84D
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa48;
/* rgb */ color: rgb(175, 170, 72);
/* oklch */ color: oklch(72.3% 0.120 106.3);
Tailwind
colors: {
  custom: {
    50: '#c9c37f',
    500: '#afaa48',
    950: '#000000',
  },
}
SCSS
$custom: #afaa48;
$custom-light: #c9c37f;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa48",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 72
  },
  "hsl": {
    "h": 57.087,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.72262,
    "c": 0.12007,
    "h": 106.3
  },
  "luminance": 0.38331
}

Semantic roles & 50–950 ramp

primary
#AFAA48
secondary
#9093C2
accent
#5CD256
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFAA48

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

Preview Lab → · Contrast checker → · Palette generator →

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