#AFAF25#AFAF25

#AFAF25 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.149 H 109.6°. Best body text is #000000 at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#AFAF25
RGBrgb(175, 175, 37)
HSLhsl(60, 65%, 42%)
HSVhsv(60, 79%, 69%)
CMYKcmyk(0%, 0%, 78.9%, 31.4%)
CIE-LABlab(69.40, -15.48, 64.55)
CIE-LCHlch(69.40, 66.39, 103.49°)
OKLaboklab(73.09% -0.0499 0.1403)
OKLCHoklch(73.09% 0.149 109.6)
XYZxyz(33.3444, 39.9085, 7.6966)
Luminance0.3991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF25 #2525AF
analogous
#AF6A25 #AFAF25 #6AAF25
triadic
#AFAF25 #25AFAF #AF25AF
tetradic
#AFAF25 #25AF6A #2525AF #AF256A
square
#AFAF25 #25AF6A #2525AF #AF256A
split-complementary
#AFAF25 #256AAF #6A25AF
monochromatic
#4A4A10 #7C7C1A #AFAF25 #D6D63C #E0E06E

Accessibility & contrast

On white

2.34
#AFAF25 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.98
#AFAF25 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF25
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF25#FFFFFF#000000##000000
##AFAF251.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA700
Deuteranopia (green-blind)
#BFAB31
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afaf25;
/* rgb */ color: rgb(175, 175, 37);
/* oklch */ color: oklch(73.1% 0.149 109.6);
Tailwind
colors: {
  custom: {
    50: '#cbc66d',
    500: '#afaf25',
    950: '#000000',
  },
}
SCSS
$custom: #afaf25;
$custom-light: #cbc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf25",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 37
  },
  "hsl": {
    "h": 60,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.73094,
    "c": 0.14886,
    "h": 109.6
  },
  "luminance": 0.39907
}

Semantic roles & 50–950 ramp

primary
#AFAF25
secondary
#6969C7
accent
#40E840
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #AFAF25

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

Preview Lab → · Contrast checker → · Palette generator →

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