RAL Classic color

RAL 1017 Saffron yellow #F5D033

RAL 1017 Saffron yellow is shown here as #F5D033, a widely published sRGB approximation of the printed swatch. It is a pale soft amber in the yellow family. In OKLCH it sits at lightness 0.865, chroma 0.165 and hue 94.7°. The nearest CSS named color is gold (#FFD700), ΔE2000 2.9 away.

Relative luminance
0.6476
OKLCH L · C · h
0.865 · 0.165 · 94.7
Best text
Black 13.95:1
Hue family
Yellow

#F5D033 color codes

HEX
#F5D033
RGB
rgb(245, 208, 51)
HSL
hsl(49, 91%, 58%)
OKLCH
oklch(0.865 0.165 94.7)
OKLab
oklab(0.865 -0.014 0.164)
CIELAB (D65)
L* 84.36, a* -1.75, b* 76.02
XYZ (D65)
X 60.81, Y 64.77, Z 12.43
CMYK (naive)
cmyk(0%, 15%, 79%, 4%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #F5D033 accessible?

Black text on it reaches 13.95:1, passing AAA. White text fails at 1.50:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    13.95:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +80
  • White text on it

    1.50:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −26
  • As text on black

    13.95:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −79
  • As text on white

    1.50:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +23

Nearest versions that pass 4.5:1

  • For text on white

    #8C7400 4.55:1

    Darkening its OKLCH lightness from 0.86 to 0.56 reaches 4.55:1 on white, keeping the hue.

  • For text on black

    #F5D033 13.95:1

    It already reaches 13.95:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #F5D033 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #F5D033

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #F5D033 sits at step 200.

  1. 50#FFF5D2
    White
    1.09
    Black
    19.24
  2. 100#FFEBA2
    White
    1.18
    Black
    17.65
  3. 200This color#F5D033
    White
    1.50
    Black
    13.95
  4. 300#DDBB28
    White
    1.87
    Black
    11.21
  5. 400#BF9F00
    White
    2.56
    Black
    8.17
  6. 500#9F8400
    White
    3.63
    Black
    5.77
  7. 600#836D00
    White
    5.05
    Black
    4.15
  8. 700#695700
    White
    7.08
    Black
    2.96
  9. 800#4D3F00
    White
    10.36
    Black
    2.02
  10. 900#322800
    White
    14.59
    Black
    1.43
  11. 950#1C1500
    White
    18.15
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #F5D033 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.178; #F5D033 uses 93% of it. Display P3, which many recent phones and laptops show, reaches 0.205 there: 16% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.165
sRGB edge
0.178
Display P3 edge
0.205
Rec. 2020 edge
0.210
Dominant wavelength
576 nm
Excitation purity
75%
Chromaticity
x 0.4406, y 0.4693
  • This color#F5D033
  • Most vivid in sRGB#F8CF00
  • Most vivid in Display P3oklch(0.865 0.205 94.7)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #f5d033;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.9648 0.8145 0); }
}

Mixing

Mixing #F5D033

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#FAE899
  • OKLab50%#FAE9AA
  • OKLCH50%#FAE9AA

Black #000000

  • sRGB50%#7B681A
  • OKLab50%#5F4F0D
  • OKLCH50%#5F4F0D

Its complement #C5D0FF

  • sRGB50%#DDD099
  • OKLab50%#DCD3AF
  • OKLCH50%#6CEBDC
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #f5d033, white);
color: color-mix(in oklch, #f5d033 50%, white);

In use

#F5D033 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:113.95:1 Passes
  • Link and body-size textText, 4.5:11.50:1 Fails
  • Large headingLarge text, 3:11.50:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.50:1 Fails

For text on this page, the nearest shade that passes is #8C7400 4.55:1

Dark page

  • Button labelText, 4.5:113.95:1 Passes
  • Link and body-size textText, 4.5:112.44:1 Passes
  • Large headingLarge text, 3:112.44:1 Passes
  • Icons, borders and focus ringsNon-text, 3:112.44:1 Passes

Color vision

How #F5D033 looks with color blindness

Tritanopia changes it most, ΔE2000 32.5; deuteranopia changes it least, 3.3.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #E7CC03 ΔE2000 3.3

    Close match

    Reads as pale vivid amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #F0D73E ΔE2000 3.3

    Close match

    Reads as pale soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #FFBFB3 ΔE2000 32.5

    Distinct

    Reads as pale muted red

  • Achromatopsia

    No cone color vision; lightness only

    #D2D2D2 ΔE2000 28.1

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #C5D0FF. Their lightness contrast is only 1.00:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#F5D033 · #C5D0FF48.2Stays distinct
Protanopia#E7CC03 · #C3D4FF48.0Stays distinct
Deuteranopia#F0D73E · #BFD0FE48.0Stays distinct
Tritanopia#FFBFB3 · #B7D9E036.4Stays distinct
Achromatopsia#D2D2D2 · #D2D2D20.0Easily confused

Harmony

Color harmonies for #F5D033

Its complement is #C5D0FF, a pale muted blue, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#F5D033
  • Complement#C5D0FF

Complementary

Open in Harmony Studio
  • −30°#FFC68F
  • Base#F5D033
  • +30°#BBE562
  • Base#F5D033
  • +120°#73E5FF
  • +240°#FFB8EF
  • Base#F5D033
  • +150°#ABD8FF
  • +210°#DFC5FF

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-1017: #f5d033;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-1017': '#f5d033',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-1017: oklch(0.865 0.165 94.7);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-1017": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.9608, 0.8157, 0.2],
        "hex": "#f5d033"
      },
      "$description": "RAL 1017 Saffron yellow (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral1017 = Color(.sRGB, red: 0.961, green: 0.816, blue: 0.200, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral1017 = Color(0xFFF5D033)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #F5D033 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.