#AFAF26#AFAF26

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

Color values

HEX#AFAF26
RGBrgb(175, 175, 38)
HSLhsl(60, 64%, 42%)
HSVhsv(60, 78%, 69%)
CMYKcmyk(0%, 0%, 78.3%, 31.4%)
CIE-LABlab(69.41, -15.45, 64.26)
CIE-LCHlch(69.41, 66.09, 103.51°)
OKLaboklab(73.1% -0.0497 0.1398)
OKLCHoklch(73.1% 0.148 109.6)
XYZxyz(33.3603, 39.9149, 7.7804)
Luminance0.3991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF26 #2626AF
analogous
#AF6B26 #AFAF26 #6BAF26
triadic
#AFAF26 #26AFAF #AF26AF
tetradic
#AFAF26 #26AF6B #2626AF #AF266B
square
#AFAF26 #26AF6B #2626AF #AF266B
split-complementary
#AFAF26 #266BAF #6B26AF
monochromatic
#4A4A10 #7D7D1B #AFAF26 #D5D53D #E0E070

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAF26#FFFFFF#000000##000000
##AFAF261.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)
#BFAB32
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afaf26;
/* rgb */ color: rgb(175, 175, 38);
/* oklch */ color: oklch(73.1% 0.148 109.6);
Tailwind
colors: {
  custom: {
    50: '#cbc66d',
    500: '#afaf26',
    950: '#000000',
  },
}
SCSS
$custom: #afaf26;
$custom-light: #cbc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf26",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 60,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.73099,
    "c": 0.14838,
    "h": 109.6
  },
  "luminance": 0.39914
}

Semantic roles & 50–950 ramp

primary
#AFAF26
secondary
#6A6AC7
accent
#40E740
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #AFAF26

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

Preview Lab → · Contrast checker → · Palette generator →

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