#AFB930#AFB930

#AFB930 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.4% C 0.153 H 113.7°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#AFB930
RGBrgb(175, 185, 48)
HSLhsl(64, 59%, 46%)
HSVhsv(64, 74%, 73%)
CMYKcmyk(5.4%, 0%, 74.1%, 27.5%)
CIE-LABlab(72.25, -20.08, 63.69)
CIE-LCHlch(72.25, 66.78, 107.50°)
OKLaboklab(75.39% -0.0617 0.1404)
OKLCHoklch(75.39% 0.153 113.7)
XYZxyz(35.5627, 44.0260, 9.4202)
Luminance0.4402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB930 #3A30B9
analogous
#B97F30 #AFB930 #6AB930
triadic
#AFB930 #30AFB9 #B930AF
tetradic
#AFB930 #30B97F #3A30B9 #B9306A
square
#AFB930 #30B97F #3A30B9 #B9306A
split-complementary
#AFB930 #306AB9 #7F30B9
monochromatic
#535817 #818823 #AFB930 #C9D354 #D9DF84

Accessibility & contrast

On white

2.14
#AFB930 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#AFB930 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB930
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB930#FFFFFF#000000##000000
##AFB9301.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B012
Deuteranopia (green-blind)
#C7B23B
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb930;
/* rgb */ color: rgb(175, 185, 48);
/* oklch */ color: oklch(75.4% 0.153 113.7);
Tailwind
colors: {
  custom: {
    50: '#cacd73',
    500: '#afb930',
    950: '#000000',
  },
}
SCSS
$custom: #afb930;
$custom-light: #cacd73;
$custom-dark: #000000;
JSON
{
  "hex": "#afb930",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 48
  },
  "hsl": {
    "h": 64.38,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75386,
    "c": 0.15338,
    "h": 113.7
  },
  "luminance": 0.44025
}

Semantic roles & 50–950 ramp

primary
#AFB930
secondary
#827CC9
accent
#46E251
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB930

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

Preview Lab → · Contrast checker → · Palette generator →

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