#AFB438#AFB438

#AFB438 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.3% C 0.143 H 111.7°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#AFB438
RGBrgb(175, 180, 56)
HSLhsl(62, 53%, 46%)
HSVhsv(62, 69%, 71%)
CMYKcmyk(2.8%, 0%, 68.9%, 29.4%)
CIE-LABlab(70.90, -17.16, 59.51)
CIE-LCHlch(70.90, 61.94, 106.09°)
OKLaboklab(74.32% -0.0529 0.133)
OKLCHoklch(74.32% 0.143 111.7)
XYZxyz(34.7153, 42.0428, 10.0270)
Luminance0.4204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB438 #3D38B4
analogous
#B47B38 #AFB438 #71B438
triadic
#AFB438 #38AFB4 #B438AF
tetradic
#AFB438 #38B47B #3D38B4 #B43871
square
#AFB438 #38B47B #3D38B4 #B43871
split-complementary
#AFB438 #3871B4 #7B38B4
monochromatic
#54571B #828529 #AFB438 #C8CD5D #D8DB8B

Accessibility & contrast

On white

2.23
#AFB438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#AFB438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB438
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB438#FFFFFF#000000##000000
##AFB4381.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC24
Deuteranopia (green-blind)
#C2AF41
Tritanopia (blue-blind)
#BBA99B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb438;
/* rgb */ color: rgb(175, 180, 56);
/* oklch */ color: oklch(74.3% 0.143 111.7);
Tailwind
colors: {
  custom: {
    50: '#caca76',
    500: '#afb438',
    950: '#000000',
  },
}
SCSS
$custom: #afb438;
$custom-light: #caca76;
$custom-dark: #000000;
JSON
{
  "hex": "#afb438",
  "rgb": {
    "r": 175,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 62.419,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.74324,
    "c": 0.14309,
    "h": 111.7
  },
  "luminance": 0.42042
}

Semantic roles & 50–950 ramp

primary
#AFB438
secondary
#8582C5
accent
#4CDC52
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB438

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

Preview Lab → · Contrast checker → · Palette generator →

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