#AFAF30#AFAF30

#AFAF30 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.143 H 109.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#AFAF30
RGBrgb(175, 175, 48)
HSLhsl(60, 57%, 44%)
HSVhsv(60, 73%, 69%)
CMYKcmyk(0%, 0%, 72.6%, 31.4%)
CIE-LABlab(69.46, -15.03, 61.05)
CIE-LCHlch(69.46, 62.87, 103.83°)
OKLaboklab(73.16% -0.0477 0.1348)
OKLCHoklch(73.16% 0.143 109.5)
XYZxyz(33.5439, 39.9883, 8.7473)
Luminance0.3999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF30 #3030AF
analogous
#AF6F30 #AFAF30 #6FAF30
triadic
#AFAF30 #30AFAF #AF30AF
tetradic
#AFAF30 #30AF6F #3030AF #AF306F
square
#AFAF30 #30AF6F #3030AF #AF306F
split-complementary
#AFAF30 #306FAF #6F30AF
monochromatic
#4F4F16 #7F7F23 #AFAF30 #CECE4E #DCDC7E

Accessibility & contrast

On white

2.33
#AFAF30 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#AFAF30 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF30
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF30#FFFFFF#000000##000000
##AFAF301.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA817
Deuteranopia (green-blind)
#BFAB3A
Tritanopia (blue-blind)
#BCA497
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaf30;
/* rgb */ color: rgb(175, 175, 48);
/* oklch */ color: oklch(73.2% 0.143 109.5);
Tailwind
colors: {
  custom: {
    50: '#cac672',
    500: '#afaf30',
    950: '#000000',
  },
}
SCSS
$custom: #afaf30;
$custom-light: #cac672;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf30",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 48
  },
  "hsl": {
    "h": 60,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73158,
    "c": 0.143,
    "h": 109.5
  },
  "luminance": 0.39987
}

Semantic roles & 50–950 ramp

primary
#AFAF30
secondary
#7676C4
accent
#48E048
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFAF30

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

Preview Lab → · Contrast checker → · Palette generator →

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