#AFAE34#AFAE34

#AFAE34 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.0% C 0.139 H 108.9°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#AFAE34
RGBrgb(175, 174, 52)
HSLhsl(60, 54%, 45%)
HSVhsv(60, 70%, 69%)
CMYKcmyk(0%, 0.6%, 70.3%, 31.4%)
CIE-LABlab(69.21, -14.32, 59.35)
CIE-LCHlch(69.21, 61.05, 103.56°)
OKLaboklab(72.96% -0.0453 0.1319)
OKLCHoklch(72.96% 0.139 108.9)
XYZxyz(33.4363, 39.6350, 9.1372)
Luminance0.3963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE34 #3435AF
analogous
#AF7134 #AFAE34 #73AF34
triadic
#AFAE34 #34AFAE #AE34AF
tetradic
#AFAE34 #34AF71 #3435AF #AF3473
square
#AFAE34 #34AF71 #3435AF #AF3473
split-complementary
#AFAE34 #3473AF #7134AF
monochromatic
#515018 #807F26 #AFAE34 #CCCB54 #DADA83

Accessibility & contrast

On white

2.35
#AFAE34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#AFAE34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE34
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE34#FFFFFF#000000##000000
##AFAE341.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA720
Deuteranopia (green-blind)
#BEAB3D
Tritanopia (blue-blind)
#BBA396
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae34;
/* rgb */ color: rgb(175, 174, 52);
/* oklch */ color: oklch(73.0% 0.139 108.9);
Tailwind
colors: {
  custom: {
    50: '#cac574',
    500: '#afae34',
    950: '#000000',
  },
}
SCSS
$custom: #afae34;
$custom-light: #cac574;
$custom-dark: #000000;
JSON
{
  "hex": "#afae34",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 52
  },
  "hsl": {
    "h": 59.512,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72964,
    "c": 0.13949,
    "h": 108.9
  },
  "luminance": 0.39634
}

Semantic roles & 50–950 ramp

primary
#AFAE34
secondary
#7B7CC4
accent
#4BDE4A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFAE34

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

Preview Lab → · Contrast checker → · Palette generator →

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