#AFA930#AFA930

#AFA930 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.8% C 0.137 H 106.5°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#AFA930
RGBrgb(175, 169, 48)
HSLhsl(57, 57%, 44%)
HSVhsv(57, 73%, 69%)
CMYKcmyk(0%, 3.4%, 72.6%, 31.4%)
CIE-LABlab(67.80, -11.93, 59.46)
CIE-LCHlch(67.80, 60.64, 101.35°)
OKLaboklab(71.83% -0.039 0.1315)
OKLCHoklch(71.83% 0.137 106.5)
XYZxyz(32.4019, 37.7044, 8.3666)
Luminance0.3770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA930 #3036AF
analogous
#AF6930 #AFA930 #75AF30
triadic
#AFA930 #30AFA9 #A930AF
tetradic
#AFA930 #30AF69 #3036AF #AF3075
square
#AFA930 #30AF69 #3036AF #AF3075
split-complementary
#AFA930 #3075AF #6930AF
monochromatic
#4F4C16 #7F7B23 #AFA930 #CEC84E #DCD77E

Accessibility & contrast

On white

2.46
#AFA930 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#AFA930 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA930
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA930#FFFFFF#000000##000000
##AFA9301.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31A
Deuteranopia (green-blind)
#BAA739
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa930;
/* rgb */ color: rgb(175, 169, 48);
/* oklch */ color: oklch(71.8% 0.137 106.5);
Tailwind
colors: {
  custom: {
    50: '#cac271',
    500: '#afa930',
    950: '#000000',
  },
}
SCSS
$custom: #afa930;
$custom-light: #cac271;
$custom-dark: #000000;
JSON
{
  "hex": "#afa930",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 48
  },
  "hsl": {
    "h": 57.165,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.71834,
    "c": 0.13711,
    "h": 106.5
  },
  "luminance": 0.37703
}

Semantic roles & 50–950 ramp

primary
#AFA930
secondary
#767AC4
accent
#4FE048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA930

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

Preview Lab → · Contrast checker → · Palette generator →

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